xy átöltözött Hitman ruházatba
TEAM_HITMAN
for(new i; i<MAX_PLAYERS; i++){if(IsPlayerConnected(i)){if(gTeam == TEAM_HITMAN){AtoltozoUzenet();}}}stock AtoltozoUzenet(){new str[128+1];GetPlayerName(playerid, str, 24);format(str, 128, \"%s átöltözött Hitman ruházatba\", str);return str;}
COMMAND:hitmanos(playerid, params[]){if(gTeam[playerid] == TEAM_HITMAN){for(new i; i<MAX_PLAYERS; i++){if(IsPlayerConnected(i)){if(gTeam == TEAM_HITMAN){new str[128+1];SetPlayerSkin(playerid,294);SetPlayerColor(playerid,TEAM_HITMAN_COLOR);GetPlayerName(playerid, str, 24);format(str, 128, \"%s átöltözött Hitman ruházatba\", str);}}return 1;}} else SendClientMessage(playerid,0xff0000AA,\"Nem vagy Hitman!\");return 1;}
COMMAND:hitmanos(playerid, params[]){ if(gTeam[playerid] == TEAM_HITMAN){ for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(gTeam == TEAM_HITMAN) { new str[128+1]; SetPlayerSkin(playerid,294); SetPlayerColor(playerid,TEAM_HITMAN_COLOR); GetPlayerName(playerid, str, 24); format(str, 128, \"%s átöltözött Hitman ruházatba\", str); SendClientMessage(i, -1, str); } } return 1; } } else SendClientMessage(playerid,0xff0000AA,\"Nem vagy Hitman!\"); return 1; }
COMMAND:hitmanos(playerid, params[]){ if(!gTeam == TEAM_HITMAN) return SendClientMessage(playerid,-1,\"Nem vagy Hittmán!\"); { new str[128+1]; SetPlayerSkin(playerid,294); SetPlayerColor(playerid,TEAM_HITMAN_COLOR); GetPlayerName(playerid, str, 24); format(str, 128, \"%s átöltözött Hitman ruházatba\", str); } return 1;}
COMMAND:hitmanos(playerid, params[]){ if(gTeam[playerid] == TEAM_HITMAN){ for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(gTeam == TEAM_HITMAN) { new str[128+1]; SetPlayerSkin(playerid,294); SetPlayerColor(playerid,TEAM_HITMAN_COLOR); GetPlayerName(playerid, str, 24); format(str, 128, \"%s átöltözött Hitman ruházatba\", str); SendClientMessage(i, -1, str); } } return 1; } } else SendClientMessage(playerid,0xff0000AA,\"Nem vagy Hitman!\"); return 1; } Tessék.
COMMAND:hitmanos(playerid, params[]){ if(!gTeam == TEAM_HITMAN) return SendClientMessage(playerid,-1,\"Nem vagy Hittmán!\"); { new str[128+1]; SetPlayerSkin(playerid,294); SetPlayerColor(playerid,TEAM_HITMAN_COLOR); GetPlayerName(playerid, str, 24); format(str, 128, \"%s átöltözött Hitman ruházatba\", str); } return 1;} Tessék [/quote]Itt semmit nem ír ki ::|
stock HitmanUzenet(color, string[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(gTeam == TEAM_HITMAN) { SendClientMessage(i, color, string); } } } }
COMMAND:hitmanos(playerid, params[]){ if(gTeam[playerid] == TEAM_HITMAN){ for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(gTeam == TEAM_HITMAN) { new str[128+1]; SetPlayerSkin(playerid,294); SetPlayerColor(playerid,TEAM_HITMAN_COLOR); GetPlayerName(playerid, str, 24); format(str, 128, \"%s átöltözött Hitman ruházatba\", str); HitmanUzenet(-1, str); } } return 1; } } else SendClientMessage(playerid,0xff0000AA,\"Nem vagy Hitman!\"); return 1; }