10.10.2010, 11:41
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?
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?