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;
}
#include zcmd
#include sscanf2
COMMAND:mudarint(playerid, params[])
{
new IDEmp, IDInt;
if(playerInfo[playerid][pAdmin] >= 1)
return SendClientMessage(playerid, -1,"[x] Vocк nгo й um ADM!");
if(sscanf(params,"ii", IDEmp, IDInt))
return SendClientMessage(playerid, -1,"[x] CMD : [Id Empresa] [Id Interior]");
BizzInfo[IDEmp][bInterior] = IDInt;
return true;
}
Nгo sei se esta correto, nгo sei fazer em strcmp, porisso fiz em zcmd.
pawn Код:
|