01.03.2010, 01:46
Код:
if(score == 50) { if(gTeam[playerid] == SOLDIER) { gTeam[playerid] = SNIPER; SetPlayerSkin(playerid, 252); SendClientMessage(playerid, COLOR_RED, "Now u are a Sniper."); new string[MAX_PLAYER_NAME + 34]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), "%s has now become a Sniper, name); SendClientMessageToAll(COLOR_RED, string); } }
Код:
if(gTeam[playerid] == BALLA && gTeam[killerid] == TEAM_WEST) { GameTextForPlayer(playerid, "~w~You were taken and are now you are a %s", 3,4500); SetSpawnInfo( playerid, 1,137,268.7510,1882.7604,-30.0938, 269.15,4,1,23,50,0,0); new name1[128]; format(name1, sizeof(name1), "[MESSAGE] %s has been captured by %s and is now a %s", PlayerName(playerid)); SendClientMessageToAll(RED, name1); SendClientMessage(playerid, RED, "Your main objective is to go conquer the eenmy base!"); SetPlayerTeam(playerid,SOLDIER); }
Код:
SetPlayerScore(killerid,1); SetPlayerScore(playerid,-1);