09.11.2012, 12:01
Queria pedir ajuda de voces pra faser um CMD de mudar interior das empresas ingame que seria /mudarint meu gm eo gf.
Esse cmd e de ir nas empresas ja dentro do interior para servir de base.
Esse cmd e de ir nas empresas ja dentro do interior para servir de base.
pawn Код:
enum bInfo{
bOwned,
bOwner[64],
bMessage[128],
bExtortion[MAX_PLAYER_NAME],
Float:bEntranceX,
Float:bEntranceY,
Float:bEntranceZ,
Float:bExitX,
Float:bExitY,
Float:bExitZ,
bLevelNeeded,
bBuyPrice,
bEntranceCost,
bTill,
bLocked,
bInterior,
};
enum bInfo
{
bOwned,
bOwner[64],
bMessage[128],
bExtortion[MAX_PLAYER_NAME],
Float:bEntranceX,
Float:bEntranceY,
Float:bEntranceZ,
Float:bExitX,
Float:bExitY,
Float:bExitZ,
bLevelNeeded,
bBuyPrice,
bEntranceCost,
bTill,
bLocked,
bInterior,
};
if(strcmp(cmd, "/biz", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 6)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /biz [empresa]");
return 1;
}
new Housenum = strval(tmp);
SetPlayerInterior(playerid,BizzInfo[Housenum][bInterior]);
SetPlayerPos(playerid,BizzInfo[Housenum][bExitX],BizzInfo[Housenum][bExitY],BizzInfo[Housenum][bExitZ]);
GameTextForPlayer(playerid, "~w~Teleportado", 5000, 1);
PlayerInfo[playerid][pInt] = BizzInfo[Housenum][bInterior];
PlayerInfo[playerid][pLocal] = Housenum+99;
}
}
return 1;
}