19.07.2017, 17:11
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(GetVehicleModel(vehicleid) == 425) { if(GetPlayerScore(playerid) < 2000 && GetPlayerTeam(playerid) != 9) { SetVehicleParamsForPlayer(vehicleid, playerid, false, true); SendClientMessage(playerid, 0xFF0000FF, "You must be in team army and must have the score 2000 to drive a Hunter!"); } } return 1; }
Код:
new team_names[][] = { "Team0 name", "Team1 name", "Team2 name", "Team3 name"//and so on }; CMD:myteam(playerid,params[]) { new team = GetPlayerTeam(playerid);//store the player's team new str[32]; format(str,32,"Your team is: %s",team_names[team]); SendClientMessage(playerid,0,str); return 1; }