14.10.2010, 21:20
Why do you want to jail players if they enter Ammu-nation.. anyhow..
You could make a single pickup, and for that ID on pickup, set their X,Y,Z in the jail cell.
You could make a single pickup, and for that ID on pickup, set their X,Y,Z in the jail cell.
pawn Код:
public OnFilterScriptInit() // Or Game mode if it makes you feel better.. depending on what you use it in
{
ammunation = CreatePickup(model, type, X,Y,Z, virtual world); // Location of the pickup
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == ammunation) SetPlayerPos(playerid,X,Y,Z);
return 1;
}