15.07.2010, 14:41
i want to make a command but only one name can use it.
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>");
}
}