SA-MP Forums Archive
Fake Commands - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Fake Commands (/showthread.php?tid=604869)



Fake Commands - SteSte - 11.04.2016

PHP код:
CMD:changeskin(playeridparams[])
{
return 
1;

I tried to make this command where when you type /changeskin it shows you the usage /changeskin[skinid]
and when the player type /changeskin their skin are changed to the id they pick but I don't know how to.

PHP код:
CMD:fakename(playeridparams[])
{
new 
FakeNames[] =
{
"Johnny_Blaze""Ghost_Rider""Scooby_Doo""Magic_Man""Noobie""Newbie",
"Noob""Newb""CrossFire""President""VicePresident""baby_Powder""Strawberry",
"CupCake""Beautiful""Puppy""Doggie""Maddog""SuperMan""Jackie_Chan"
};
SetPlayerName(playeridFakeNames);
return 
1;

Now I have this cmd above and I haven't tested it, but I don't know how to make a cmd that changes their name back and their skin back from the one above, so can anyone help me?


Re: Fake Commands - HuntingMan - 11.04.2016

For the first command

Quote:

new cmdreason;

if(sscanf(params,"u",cmdreason))
{
SendClientMessage(playerid,COLOR_ERROR,"{CACA00}[INFO]{FFFFFF}: /adsetskin [PlayerID] [SkinID]");
return 1;
}



SetPlayerSkin(playerid,cmdreason);




Re: Fake Commands - HuntingMan - 11.04.2016

For the first command

Quote:

new cmdreason;

if(sscanf(params,"u",cmdreason))
{
SendClientMessage(playerid,COLOR_ERROR,"{CACA00}[INFO]{FFFFFF}: /adsetskin [PlayerID] [SkinID]");
return 1;
}



SetPlayerSkin(playerid,cmdreason);




Respuesta: Fake Commands - Thewin - 11.04.2016

that sscanf condition is bad

Код:
if(sscanf(params,"i",cmdreason))
{
SendClientMessage(playerid,COLOR_ERROR,"{CACA00}[INFO]{FFFFFF}: /adsetskin [SkinID]");
return 1;
}