11.01.2014, 14:06
pawn Code:
CMD:bizstats(playerid, params[])
{
new string[128], status[16], status2[16];
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBiz]) format(status, sizeof(status), "%s", RBS(PlayerInfo[playerid][pBiz]));
if(!PlayerInfo[playerid][pBiz]) format(status, sizeof(status), "None");
if(PlayerInfo[playerid][pVBiz]) format(status2, sizeof(status2), "%s", RBS(PlayerInfo[playerid][pVBiz]));
if(!PlayerInfo[playerid][pVBiz]) format(status2, sizeof(status2), "None");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "_____________________________________________________");
format(string, sizeof(string), "Businesses of %s", GetPlayerNameEx(playerid));
SendClientMessage(playerid, COLOR_ORANGE, string);
format(string, sizeof(string), "Business 1: %s | ID: %s | Level: %s | Status: %s | Products: %s | Vault: %s", RBT(PlayerInfo[playerid][pBiz]), RPBK(playerid), RPBL(playerid),status, RPBP(playerid), RPBM(playerid));
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "Business 2: %s | ID: %s | Level: %s | Status: %s | Products: %s | Vault: %s", RBT(PlayerInfo[playerid][pVBiz]), RPVIPBK(playerid), RPVIPBL(playerid),status2, RPVIPBP(playerid), RPVIPBM(playerid));
SendClientMessage(playerid, COLOR_FADE2, string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "_____________________________________________________");
}
}
return 1;
}
pawn Code:
CMD:bizstats(playerid, params[])
{
new string[128], status[16], status2[16];
if(!IsPlayerConnected(playerid))
return SendClientMessage(playerid,COLOR_RED,"Player not connected!");
if(PlayerInfo[playerid][pBiz]) format(status, sizeof(status), "%s", RBS(PlayerInfo[playerid][pBiz]));
if(!PlayerInfo[playerid][pBiz]) format(status, sizeof(status), "None");
if(PlayerInfo[playerid][pVBiz]) format(status2, sizeof(status2), "%s", RBS(PlayerInfo[playerid][pVBiz]));
if(!PlayerInfo[playerid][pVBiz]) format(status2, sizeof(status2), "None");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "_____________________________________________________");
format(string, sizeof(string), "Businesses of %s", GetPlayerNameEx(playerid));
SendClientMessage(playerid, COLOR_ORANGE, string);
format(string, sizeof(string), "Business 1: %s | ID: %s | Level: %s | Status: %s | Products: %s | Vault: %s", RBT(PlayerInfo[playerid][pBiz]), RPBK(playerid), RPBL(playerid),status, RPBP(playerid), RPBM(playerid));
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "Business 2: %s | ID: %s | Level: %s | Status: %s | Products: %s | Vault: %s", RBT(PlayerInfo[playerid][pVBiz]), RPVIPBK(playerid), RPVIPBL(playerid),status2, RPVIPBP(playerid), RPVIPBM(playerid));
SendClientMessage(playerid, COLOR_FADE2, string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "_____________________________________________________");
}
return 1;
}