[AJUDA] ANT-ESC
#2

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;
}
Se nгo funcionar corretamente assim
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;
}
Reply


Messages In This Thread
[AJUDA] ANT-ESC - by MineiroH - 02.05.2012, 17:42
Re: [AJUDA] ANT-ESC - by zbt - 02.05.2012, 18:37
Re: [RESOLVIDO] ANT-ESC - by MineiroH - 02.05.2012, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)