Fake Commands
#1

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

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);

Reply
#3

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);

Reply
#4

that sscanf condition is bad

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


Forum Jump:


Users browsing this thread: 1 Guest(s)