03.10.2012, 15:23
Hello there i have a question. i made like when player enter vehicle its locked and its tp him out... its tp him out when he is allready in i wish to create it ,its tp him out when he attempt to enter.
PHP код:
public SafeRemovePlayerFromVehicle(playerid)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Spectate[i] != 255)
{
PlayerSpectatePlayer(i,playerid);
}
}
}
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
TextDrawHideForPlayer(playerid, Textdraw39[playerid]);
TextDrawHideForPlayer(playerid, Textdraw40[playerid]);
TextDrawHideForPlayer(playerid, Textdraw53[playerid]);
SafeSetPlayerPos(playerid,x,y-2, z);
return 1;
}