19.10.2010, 16:45
Quote:
1. IsPlayerInVehicle, You didn't put them in the vehicle. So try this:
Код:
if(dialogid == 2) { if(response) { new message[256+1]; new DMV; if(listitem == 0) { format(message, 256, "You have chosen 'Drivers License' please drive carefully", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); DMV = AddStaticVehicle(405,-220.8077,1212.4143,19.6102,179.2256,24,1); // PutPlayerInVehicle(playerid, DMV, 0); { if (IsPlayerInVehicle(playerid, DMV)) { SetPlayerCheckpoint(playerid, -206.8228,1195.4480,19.4574, 3.0); return 1; } } } |
pawn Код:
if(dialogid == 2)
{
if(response)
{
new message[256+1];
new DMV;
if(listitem == 0)
{
format(message, 256, "You have chosen 'Drivers License' please drive carefully", listitem);
SendClientMessage(playerid, 0xFFFFFFFF, message);
DMV = AddStaticVehicle(405,-220.8077,1212.4143,19.6102,179.2256,24,1); //
SetPlayerCheckpoint(playerid, -206.8228,1195.4480,19.4574, 3.0);
return 1;
}
}
}