if(strcmp(cmd, \"/hitman\", true) == 0){ if(gTeam[playerid] == TEAM_CIVILIAN) { GetPlayerName(playerid, name, sizeof (name)); format(string, sizeof(string), \"Egy hitman járkál a városban nézzetek a hátatok mögé!\", name); SendClientMessageToAll(COLOR_GREEN, string); GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 16, 100); GivePlayerWeapon(playerid, 23, 500); GivePlayerWeapon(playerid, 27, 300); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 31, 1000); GivePlayerWeapon(playerid, 34, 500); GivePlayerWeapon(playerid, 36, 500); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); gTeam[playerid] = TEAM_GUARD; } else { SendClientMessage(playerid, COLOR_RED, \"Elõször lépj ki a mostani munkádból! (/quitjob)\"); } return 1;}
if(strcmp(cmd, \"/hitman\", true) == 0) { if(gTeam[playerid] == TEAM_CIVILIAN || TEAM_GUARD)) { new name[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid, name, sizeof (name)); format(string, sizeof(string), \"Egy hitman járkál a városban nézzetek a hátatok mögé!\", name); SendClientMessageToAll(COLOR_GREEN, string); GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 16, 100); GivePlayerWeapon(playerid, 23, 500); GivePlayerWeapon(playerid, 27, 300); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 31, 1000); GivePlayerWeapon(playerid, 34, 500); GivePlayerWeapon(playerid, 36, 500); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } else { SendClientMessage(playerid, COLOR_RED, \"Elõször lépj ki a mostani munkádból! (/quitjob)\"); } return 1; }
Álmos\" post=\"267843\" timestamp=\"1336135411\"][/code] if(strcmp(cmd, \"/hitman\", true) == 0){ if(gTeam[playerid] == TEAM_CIVILIAN) { GetPlayerName(playerid, name, sizeof (name)); format(string, sizeof(string), \"Egy hitman járkál a városban nézzetek a hátatok mögé!\", name); SendClientMessageToAll(COLOR_GREEN, string); GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 16, 100); GivePlayerWeapon(playerid, 23, 500); GivePlayerWeapon(playerid, 27, 300); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 31, 1000); GivePlayerWeapon(playerid, 34, 500); GivePlayerWeapon(playerid, 36, 500); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); gTeam[playerid] = TEAM_GUARD; } else { SendClientMessage(playerid, COLOR_RED, \"Elõször lépj ki a mostani munkádból! (/quitjob)\"); } return 1;}Dupla hozzászólás automatikusan összefûzve. ( 2012. május 04. - 14:44:06 )if(strcmp(cmd, \"/hitman\", true) == 0){ if(gTeam[playerid] == TEAM_CIVILIAN) { GetPlayerName(playerid, name, sizeof (name)); format(string, sizeof(string), \"Egy hitman járkál a városban nézzetek a hátatok mögé!\", name); SendClientMessageToAll(COLOR_GREEN, string); GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 16, 100); GivePlayerWeapon(playerid, 23, 500); GivePlayerWeapon(playerid, 27, 300); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 31, 1000); GivePlayerWeapon(playerid, 34, 500); GivePlayerWeapon(playerid, 36, 500); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); gTeam[playerid] = TEAM_GUARD; } else { SendClientMessage(playerid, COLOR_RED, \"Elõször lépj ki a mostani munkádból! (/quitjob)\"); } return 1;}[/quote]Az a gondom vele,hogy ha beírom, hogy /hitman kiad egy animot és mást nem! [/quote]
Dupla hozzászólás automatikusan összefûzve. ( 2012. május 04. - 14:44:06 )if(strcmp(cmd, \"/hitman\", true) == 0){ if(gTeam[playerid] == TEAM_CIVILIAN) { GetPlayerName(playerid, name, sizeof (name)); format(string, sizeof(string), \"Egy hitman járkál a városban nézzetek a hátatok mögé!\", name); SendClientMessageToAll(COLOR_GREEN, string); GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 16, 100); GivePlayerWeapon(playerid, 23, 500); GivePlayerWeapon(playerid, 27, 300); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 31, 1000); GivePlayerWeapon(playerid, 34, 500); GivePlayerWeapon(playerid, 36, 500); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); gTeam[playerid] = TEAM_GUARD; } else { SendClientMessage(playerid, COLOR_RED, \"Elõször lépj ki a mostani munkádból! (/quitjob)\"); } return 1;}[/quote]Az a gondom vele,hogy ha beírom, hogy /hitman kiad egy animot és mást nem!
#include <a_samp>#define TEAM_CIVILIAN 1#define TEAM_GUARD 2#define red 0xFF0000AA#define green 0x33FF33AA#pragma tabsize 0new gTeam[MAX_PLAYERS];public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(\"/hitman\",cmdtext, true,10) == 0) { if(gTeam[playerid] == TEAM_GUARD) { new name[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid, name, sizeof (name)); format(string, sizeof(string), \"Egy hitman járkál a városban nézzetek a hátatok mögé!\", name); SendClientMessageToAll(green, string); GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 16, 100); GivePlayerWeapon(playerid, 23, 500); GivePlayerWeapon(playerid, 27, 300); GivePlayerWeapon(playerid, 29, 500); GivePlayerWeapon(playerid, 31, 1000); GivePlayerWeapon(playerid, 34, 500); GivePlayerWeapon(playerid, 36, 500); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } else { SendClientMessage(playerid, red, \"Elõször lépj ki a mostani munkádból! (/quitjob)\"); }}return 1;}