05.08.2011, 16:42
How could I check if someone is in a specific vehicle?
Like, how could I put on this command:
Thanks for all the help, and the people who help will get +1 reputation.
Like, how could I put on this command:
pawn Код:
command(sweep, playerid, params[])
{
if(//Here get the vehicle ID, of 574.)
{
Sweepcp[playerid] = 1;
SetPlayerCheckpoint(playerid, -269.1287,2610.6057,63.2069, 3.0);
SendClientMessage(playerid, 0xFFFFFFFF, "You have started to sweep the streets, Please follow the checkpoints.");
}
else
{
SendClientMessage(playerid, WHITE, "You must be in a sweeper to sweep the streets.");
}
return 1;
}