23.01.2013, 12:48
Quote:
Are you sure "OnPlayerExitVehicle" is called when you 'leave' RC vehicles ? Why don't you use 'OnPlayerStateChange' ? That should work...
|
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
for(new i=0;i<26;i++)
{
if(RCWarCar[i] == vehicleid) Cars[i] = 0;
if(Kart[i] == vehicleid)
{
Karts[i] = 0;
Player[playerid] = 0;
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1173.4355,1355.9640,10.9219);
SetPlayerFacingAngle(playerid,88.9805);
SendClientMessage(playerid,0x00C7FFAA,"Bye, noob");
}
}
return 1;
}