06.01.2012, 17:48
well how can i use strcmp or w/e? like for a zcmd command i would like it to work if their name is "Tan"
CMD:yourcmd(playerid, params[])
{
new PlayerName[24];
GetPlayerName(playerid, PlayerName,sizeof(PlayerName));
if (strcmp(PlayerName,"Tan",true) == 0)
{
//Name is "Tan"
}
else
{
//Name is not "Tan"
}
return 1;
}
if(!strcmp(Nam,"Tan",true) == 0 && !IsPlayerAdmin(playerid)) return 0;
if (strcmp(PlayerName,"Tan",true) != 0) return 0;