02.05.2012, 18:37
pawn Код:
public OnPlayerSpawn(playerid) {
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetTimerEx("esc", 60000, false, "ifff", playerid, x, y, z);
return true;
}
//final
forward esc(playerid, Float:x, Float:y, Float:z);
public esc(playerid, Float:x, Float:y, Float:z) {
new Float:p[3];
GetPlayerPos(playerid, p[0], p[1], p[2]);
if(p[0] == x && p[1] == y && p[2] == z) {
SendClientMessage(playerid, -1, "Vocк foi kickado por esc..");
Kick(playerid);
}
return true;
}
faзa assim
pawn Код:
public OnPlayerSpawn(playerid) {
SetTimerEx("getar", 1000, false, "i", playerid);
return true;
}
//final
forward getar(playerid);
public getar(playerid) {
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetTimerEx("esc", 60000, false, "ifff", playerid, x, y, z);
return true;
}
forward esc(playerid, Float:x, Float:y, Float:z);
public esc(playerid, Float:x, Float:y, Float:z) {
new Float:p[3];
GetPlayerPos(playerid, p[0], p[1], p[2]);
if(p[0] == x && p[1] == y && p[2] == z) {
SendClientMessage(playerid, -1, "Vocк foi kickado por esc..");
Kick(playerid);
}
return true;
}