20.03.2011, 20:42
can somebody tell me how to make a command to invite somebody in my mafia
i was looking on other gamemodes and i was find this :
but i was make some changes ,, and i have errors
theres my team:
and i want make one command to invite someone i my team .,, please help
i was looking on other gamemodes and i was find this :
Код:
(strcmp(cmd, "/gethimtomafia", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /gethimtomafia [playerid/PartOfName]"); return 1; } new para1; new ftext[20]; para1 = ReturnUser(tmp); if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { pTeam[playerid] = team_streetr; } return 1; }
theres my team:
Код:
new pTeam[MAX_PLAYERS]; #define team_streetr 1