11.05.2013, 08:04
Hello i have 4 jobs in my Server.How can i make example Job3 to be only for 7 level players and more?
pawn Код:
if (strcmp("/sweep", cmdtext, true, 10) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
{
sweeper[playerid] = 1;
SetPlayerColor(playerid, COLOR_JOB);
ToggleEngine(carsweeper[1], VEHICLE_PARAMS_ON);
ToggleEngine(carsweeper[2], VEHICLE_PARAMS_ON);
ToggleEngine(carsweeper[3], VEHICLE_PARAMS_ON);
SetPlayerCheckpoint(playerid, SweeperCheckPoint1, 3.0);
new string[18];
format(string, sizeof(string), "You startet Sweeper Job");
GameTextForPlayer(playerid, string, 3000, 1);
format(string, sizeof(string), "Sweeper: You start like sweeper.....");
SendClientMessage(playerid, COLOR_ORANGE, string);
return 1;
} else {
SendClientMessage(playerid, COLOR_GRAD1,"You must entry in sweeper..!");
}
return 1;
}