07.07.2009, 12:52
Quote:
Originally Posted by Shinzei_Banzai
Hihi
Now I need this command to keep spawning red markers randomly when you enter one. pawn Код:
|
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/grass", cmdtext, true, 6) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if (GetVehicleModel(vehicleid) == 572)
{
SendClientMessage(playerid,0xBBFFFFFF, "You Have Started A Lawnmower Mission.");
SetPlayerRaceCheckpoint(playerid, 2, 779.9626, -1259.1793, 13.5719, 0, 0, 0, 4.0);
}
else
{
SendClientMessage(playerid,0xE60000FF, "You Must Be Driving A Lawnmower To Use This Command.");
}
return 1;
}
return 0;
}
pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
if (GetVehicleModel(vehicleid) == 572)
{
if (PlayerToPoint(4, playerid, 779.9626, -1259.1793, 13.5719))
{
SetPlayerRaceCheckpoint(playerid, 2, X, Y, Z, 0, 0, 0, 6.0);// Set the X, Y, Z
SendClientMessage(playerid, 0xBBFFFFFF, "You Have Arived At Checkpoint 1, Go To Checkpoint 2..");
}
else if (PlayerToPoint(4, playerid, X, Y, Z))// Set the X, Y, Z
{
SetPlayerRaceCheckpoint(playerid, 2, X, Y, Z, 0, 0, 0, 6.0);// Set the X, Y, Z
SendClientMessage(playerid, 0xBBFFFFFF, "You Have Arived At Checkpoint 2, Go To Checkpoint 3..");
}
return 1;
}
return 1;
}