07.07.2009, 12:10
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/grass", cmdtext, true, 6) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if (GetVehicleModel(vehicleid) == 572)
{
SetPlayerCheckpoint(playerid, 779.9626, -1259.1793, 13.5719, 3.0);
}
else
{
SendClientMessage(playerid,0xE60000FF, "You Must Be Driving A Lawnmower To Use This Command.");
}
return 1;
}
return 0;
}