#1

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
Reply
#2

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;
}
Reply
#3

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.
Reply
#4

lol 69 the exact same code. XD Cause its a basic script, not much diff to do.
Reply
#5

Quote:
Originally Posted by mansonh
lol 69 the exact same code. XD Cause its a basic script, not much diff to do.
Edited, sry.
Reply
#6

Thanks dude's
Can i make that skins
290,291,292,293,294,295,296,297,298,299
Can just admins use ?
Reply
#7

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;
}
}
Reply
#8

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.
Reply
#9

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
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)