SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 24/01/2010, 04:06 PM   #1
maltheus.
Big Clucker
 
Join Date: Dec 2009
Posts: 104
Reputation: 0
Default Skins

Do anyone have for GM skins when player type /myskin id
He get skin... I know how to make that
Quote:
if(strcmp(cmdtext, "/myskin 1", true) == 0)
{
SetPlayerSkin(playerid, 1);
return 1;
}
but for all skins huh that will be long night for me xD
Thanks if anyone have
So i need this
Quote:
if(strcmp(cmdtext, "/myskin 1", true) == 0)
{
SetPlayerSkin(playerid, 1);
return 1;
}

But for all skins
maltheus. is offline  
Old 24/01/2010, 04:12 PM   #2
mansonh
Gangsta
 
Join Date: Jun 2009
Posts: 617
Reputation: 0
Default Re: Skins

Code:
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);

if(strcmp(cmd, "/myskin", true) == 0)
{
	new tmp[256];
	tmp = strtok( cmdtext, idx );
	SetPlayerSkin(playerid, strval(tmp));
    return 1;
}
__________________
mansonh is offline  
Old 24/01/2010, 04:13 PM   #3
Emmet_
Guest
 
Posts: n/a
Default Re: Skins

EDIT: mansonh beat me to posting D:

Anyways, it's impossible to use /myskin 1, as it won't reconize the 1 for some reason.
 
Old 24/01/2010, 04:13 PM   #4
mansonh
Gangsta
 
Join Date: Jun 2009
Posts: 617
Reputation: 0
Default Re: Skins

lol 69 the exact same code. XD Cause its a basic script, not much diff to do.
__________________
mansonh is offline  
Old 24/01/2010, 04:17 PM   #5
Emmet_
Guest
 
Posts: n/a
Default Re: Skins

Quote:
Originally Posted by mansonh
lol 69 the exact same code. XD Cause its a basic script, not much diff to do.
Edited, sry.
 
Old 24/01/2010, 04:19 PM   #6
maltheus.
Big Clucker
 
Join Date: Dec 2009
Posts: 104
Reputation: 0
Default Re: Skins

Thanks dude's
Can i make that skins
290,291,292,293,294,295,296,297,298,299
Can just admins use ?
maltheus. is offline  
Old 24/01/2010, 04:23 PM   #7
deather
Huge Clucker
 
deather's Avatar
 
Join Date: Dec 2009
Location: India
Posts: 374
Reputation: 2
Default Re: Skins

Quote:
Originally Posted by [FG
otto ]
Thanks dude's
Can i make that skins
290,291,292,293,294,295,296,297,298,299
Can just admins use ?
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);

if(strcmp(cmd, "/myskin", true) == 0)
{
if(!IsPlayerAdmin(playerid)) return 0;
{
new tmp[256];
tmp = strtok( cmdtext, idx );
SetPlayerSkin(playerid, strval(tmp));
return 1;
}
}
deather is offline  
Old 24/01/2010, 04:26 PM   #8
mansonh
Gangsta
 
Join Date: Jun 2009
Posts: 617
Reputation: 0
Default Re: Skins

Quote:
Originally Posted by 69Playa
Quote:
Originally Posted by mansonh
lol 69 the exact same code. XD Cause its a basic script, not much diff to do.
Edited, sry.
Np, i wasn't complaining, just thought it was funny we both posted the exact same code at the same time.
__________________
mansonh is offline  
Old 24/01/2010, 04:38 PM   #9
maltheus.
Big Clucker
 
Join Date: Dec 2009
Posts: 104
Reputation: 0
Default Re: Skins

Quote:
Originally Posted by deather
Quote:
Originally Posted by [FG
otto ]
Thanks dude's
Can i make that skins
290,291,292,293,294,295,296,297,298,299
Can just admins use ?
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);

if(strcmp(cmd, "/myskin", true) == 0)
{
if(!IsPlayerAdmin(playerid)) return 0;
{
new tmp[256];
tmp = strtok( cmdtext, idx );
SetPlayerSkin(playerid, strval(tmp));
return 1;
}
}
Now just rcon admin can use /myskin
But i mean
To regular players can use /myskin 0 - /myskin 289
And ALL admins /myskin 290 - /myskin 299
maltheus. is offline  
Old 24/01/2010, 10:49 PM   #10
mansonh
Gangsta
 
Join Date: Jun 2009
Posts: 617
Reputation: 0
Default Re: Skins

Ok so just put in a check.
If they aren't an admin(already put in) and they select one of the admin skins, return.
Otherwise apply skin change.
__________________
mansonh is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant see skins Dolph Help Archive 12 28/03/2010 01:49 PM
[DUV]Skins Regalado_xD PortuguÍs/Portuguese 1 25/02/2010 02:16 AM
Different Skins? azrail41 Help Archive 5 09/12/2009 05:45 PM
skins sggassasin Help Archive 5 27/07/2009 05:37 AM


All times are GMT. The time now is 07:18 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.