11.05.2013, 08:28
Quote:
Yeah but man , Add a SendClientMessage That you cant do these from that level , You should be 7+...
|
pawn Код:
if (strcmp("/sweep", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pLevel] >= 7)
{
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..!");
SendClientMessage(playerid, COLOR_GRAD1,"You must be level 7 to use this job!");
}
return 1;
}