[Question] Is there a way to check...
#3

Quote:

new Data[MAX_PLAYER_NAME];
GetPlayerName(playerid, Data, sizeof(Data));
if(strcmp(Data,"yournamehere",true))

Quote:

if (strcmp("/cctv", cmdtext, true) == 0)
{
new Data[MAX_PLAYER_NAME];
GetPlayerName(playerid, Data, sizeof(Data));
if(strcmp(Data,"yournamehere",true))[/
{
PlayerMenu[playerid] = 0;
TogglePlayerControllable(playerid, 0);
ShowMenuForPlayer(CCTVMenu[0], playerid);
return 1;
}
}

Untested* and I'm a newbie aswell, so don't flame me.
Reply


Messages In This Thread
[Question] Is there a way to check... - by Castle - 11.03.2009, 19:26
Re: [Question] Is there a way to check... - by Dujma - 11.03.2009, 19:30
Re: [Question] Is there a way to check... - by GTA_Rules - 11.03.2009, 19:32
Re: [Question] Is there a way to check... - by MenaceX^ - 11.03.2009, 19:32
Re: [Question] Is there a way to check... - by Dujma - 11.03.2009, 19:33
Re: [Question] Is there a way to check... - by MenaceX^ - 11.03.2009, 19:35
Re: [Question] Is there a way to check... - by Dujma - 11.03.2009, 19:37
Re: [Question] Is there a way to check... - by GTA_Rules - 11.03.2009, 19:38
Re: [Question] Is there a way to check... - by Dujma - 11.03.2009, 19:40
Re: [Question] Is there a way to check... - by MenaceX^ - 11.03.2009, 19:45

Forum Jump:


Users browsing this thread: 1 Guest(s)