Pequeno Problema
#5

pawn Код:
//Final do GameMode
stock IsPlayerInArena(playerid)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    if(x >= 1271.44 && y >= 2092.145 && x <= 1384.68 && y <= 2208.187) return true; //Troque pela suas coordenadas
    else return false;
}

// comando

if(strcmp(cmdtext,"/sair",true)==0)
{
    if(!IsPlayerInArena(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estб em uma arena");
    BlockCMD[playerid] = false;
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 24, 99999);
    GivePlayerWeapon(playerid, 28, 99999);
    GivePlayerWeapon(playerid, 26, 99999);
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,0);
    GameTextForPlayer(playerid,"",4000,6);
    SetPlayerInterior(playerid,0);
    new rand = random(sizeof(RandomSpawns));
    SetPlayerPos(playerid, RandomSpawns[rand][0], RandomSpawns[rand][1],RandomSpawns[rand][2]);
    SetPlayerFacingAngle(playerid, RandomSpawns[rand][3]);
    SetPlayerInterior(playerid,0);
    SetPlayerWorldBounds(playerid,20000.0000,-20000.0000,20000.0000,-20000.0000);
    SetPlayerInterior(playerid,0);
    return 1;
}
Reply


Messages In This Thread
Pequeno Problema - by CanTLoGin - 29.08.2011, 13:46
Re: Pequeno Problema - by [BEP]AcerPilot - 29.08.2011, 14:01
Re: Pequeno Problema - by CanTLoGin - 29.08.2011, 14:05
Re: Pequeno Problema - by [BEP]AcerPilot - 29.08.2011, 14:09
Re: Pequeno Problema - by Lipe_Stronda - 29.08.2011, 14:09
Re: Pequeno Problema - by CanTLoGin - 29.08.2011, 14:27
Re: Pequeno Problema - by trollv - 29.08.2011, 14:28
Re: Pequeno Problema - by StrondA_ - 29.08.2011, 14:28
Re: Pequeno Problema - by CanTLoGin - 29.08.2011, 14:30

Forum Jump:


Users browsing this thread: 1 Guest(s)