Warings
#5

if (strcmp("/brb", cmdtext, true, 10) == 0) {
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid,pName,sizeof(pName));
format(string, sizeof(string),"You are now be right back!");
SendClientMessageToAll(COLOR_YELLOW, string);
TogglePlayerControllable(playerid,0);
return 1;
}
if(strcmp("/afk",cmdtext, true) == 0) {
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid,pName,sizeof(pName));
format(string, sizeof(string),"You are now away from keyboard!");
SendClientMessageToAll(COLOR_RED, string);
TogglePlayerControllable(playerid,0);
return 1;
}
if(strcmp("/back",cmdtext, true, 10) == 0) {
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid,pName,sizeof(pName));
format(string, sizeof(string),"You are now back!");
SendClientMessageToAll(COLOR_GREEN, string);
TogglePlayerControllable(playerid,1);
return 1;
}

right now is mine string 64 or i should change?
Reply


Messages In This Thread
Warings - by Mr.Jvxmc - 10.10.2010, 11:29
Re: Warings - by WillyP - 10.10.2010, 11:32
Re: Warings - by Mr.Jvxmc - 10.10.2010, 11:34
Re: Warings - by SampStunta - 10.10.2010, 11:35
Re: Warings - by Mr.Jvxmc - 10.10.2010, 11:41

Forum Jump:


Users browsing this thread: 1 Guest(s)