SA-MP Forums Archive
How i do this - 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: How i do this (/showthread.php?tid=160076)



How i do this - ls200 - 15.07.2010

i want to make a command but only one name can use it.


Re: How i do this - Hiddos - 15.07.2010

pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
  if(!strcmp(cmdtext,"/command",true))
  {
    new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,sizeof pName);
    if(!strcmp(pName,"<name>"))
    {
    }
    else SendClientMessage(playerid,0x0000ff00,"Your name isnt <name>");
  }
}



Re: How i do this - ls200 - 15.07.2010

thanks man