Help me with this command - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me with this command (
/showthread.php?tid=84319)
Help me with this command -
Tommy_Mandaz - 30.06.2009
Код:
if(strcmp(cmd, "/stranger", true) == 0)
{
SetPlayerName(playerid,"Stranger");
return 1;
}
Well I have been working on this so that when the person does /stranger it makes his name stranger rather then his old name but how would I make it so that if he does /stranger again his old name would come back?
EX:
Tommy types /stranger
tommy's name changes to stranger
tommy types /stranger again
tommy's name changes back to tommy
Does anyone how I would do that?
Thanks,
tommy
Re: Help me with this command -
godforbid - 01.07.2009
dunno if you can but you would have to check on scripting descussion but try this
if(strcmp(cmd, "/rename", true) == 0)
{
SetPlayerName(playerid,"%s");
return 1;
}