05.10.2011, 01:10
tentas:
pawn Код:
new
Float:pX[MAX_PLAYERS],
Float:pY[MAX_PLAYERS],
Float:pZ[MAX_PLAYERS]
;
forward PlayerInUseEsc(playerid, Float:x, Float:y, Float:z);
public PlayerInUseEsc(playerid, Float:x, Float:y, Float:z)
{
if(pX[playerid] != 0.0)
{
new Float:_X, Float:_Y, Float:_Z; GetPlayerPos(playerid, _X, _Y, _Z);
if(_X == pX[playerid] && _Y == pY[playerid] && _Z == pZ[playerid])
{
new id = playerid;
Kick(playerid);
pX[id] = 0.0;
pY[id] = 0.0;
pZ[id] = 0.0;
}
}
GetPlayerPos(playerid, pX[playerid], pY[playerid], pZ[playerid]);
SetTimerEx("PlayerInUseEsce", 3000, false, "ifff", playerid, pX[playerid], pY[playerid], pZ[playerid]);
return 1;
}