lock cars on spawn.
#2

Simple example
pawn Код:
//OnPlayerEnterVehicle
if(vehicleid == CAR_SPAWNED) // you need to save the id of the spawned car
{
    if(!IsPlayerAdmin(playerid))
    {
        new VBPos[3];
        GetPlayerPos(playerid,VBPos[0],VBPos[1],VBPos[2]);
        SetPlayerPos(playerid,VBPos[0],VBPos[1],VBPos[2]);
    }
}
Reply


Messages In This Thread
lock cars on spawn. - by ThamburaaN - 10.10.2012, 02:46
Re: lock cars on spawn. - by ViniBorn - 10.10.2012, 03:24
Re: lock cars on spawn. - by ThamburaaN - 10.10.2012, 04:05

Forum Jump:


Users browsing this thread: 1 Guest(s)