24.05.2011, 01:11
This is so obvious...
On that callback playerid is not there....come on pay attention this wasn't hard.
And in case you don't know what I'm talking about, there is only "vehicleid" and "killerid"
pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
if (RandomSpawn == 0)
{
SetPlayerPos(playerid,4156.7104,-1761.2954,2.2266,172.4404);
PutPlayerInVehicle(playerid, 503, 0)
}
if (RandomSpawn == 1)
{
SetPlayerPos(playerid,4135.6538,-2034.2894,2.2266,332.7002);
PutPlayerInVehicle(playerid, 504, 0)
}
return 1;
}
And in case you don't know what I'm talking about, there is only "vehicleid" and "killerid"