Skins -
maltheus. - 24.01.2010
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
Re: Skins -
mansonh - 24.01.2010
pawn Код:
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;
}
Re: Skins - Emmet_ - 24.01.2010
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.
Re: Skins -
mansonh - 24.01.2010
lol 69 the exact same code. XD Cause its a basic script, not much diff to do.
Re: Skins - Emmet_ - 24.01.2010
Quote:
Originally Posted by mansonh
lol 69 the exact same code. XD Cause its a basic script, not much diff to do.
|
Edited, sry.
Re: Skins -
maltheus. - 24.01.2010
Thanks dude's
Can i make that skins
290,291,292,293,294,295,296,297,298,299
Can just admins use ?
Re: Skins -
deather - 24.01.2010
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;
}
}
Re: Skins -
mansonh - 24.01.2010
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.
Re: Skins -
maltheus. - 24.01.2010
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
Re: Skins -
mansonh - 24.01.2010
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.