Quote:
Originally Posted by [HiC]TheKiller
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { new Pname[24]; GetPlayerName(playerid, Pname, 24); if(vehicleid == /*The certain vehicle ID you want to restrict*/ && strcmp(Pname, /*Name you want to restrict the car to*/, true) && ispassenger == 0) { new Float:Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); } return 1; }
|
thanks! so where should i put this in my script? also do i need to define anything or whatsoever?