- 0
[GF/RP] cum fac aceste comenzi si la alte factiunii
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Papana
deci am niste comenzi dar la ele nu gasesc
pLeader sau pMember
[pawn] if(strcmp(cmd, "/fmats", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAMember(playerid))
{
new x;
x = PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader];
if(PlayerInfo[playerid][pRank] < 3)
{
SCM(playerid, COLOR_GREY, " You need to be Rank 3 or Higher for this action !");
return 1;
}
/*if(DynamicFactions[x][fSafe] <= 0)
{
SCM(playerid, COLOR_WHITE, "The leader must buy a SAFE first !");
return 1;
}*/
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ]))
{
format(string, sizeof(string), "Faction Mats: $%d.", DynamicFactions[x][fMats]);
SCM(playerid, COLOR_WHITE, string);
}
SCM(playerid, COLOR_WHITE, "|________________________fMats_________________________|");
SCM(playerid, COLOR_WHITE, "| USAGE: /fmats [name] [ammount]");
SCM(playerid, COLOR_GREY, " | Available names: Take , Put");
SCM(playerid, COLOR_WHITE, "|______________________________________________________|");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, playername, sizeof(playername));
if(strcmp(x_nr,"take",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SCM(playerid, COLOR_GREY, "[uSAGE:] /fmats take [amount]");
return 1;
}
new materialsdeposit = strval(tmp);
if(!strlen(tmp))
{
SCM(playerid, COLOR_GREY, "[uSAGE:] /fmats take [amount]");
return 1;
}
if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ]))
{
if(materialsdeposit <=DynamicFactions[x][fMats])
{
PlayerInfo[playerid][pMats] += materialsdeposit;
DynamicFactions[x][fMats]=DynamicFactions[x][fMats]-materialsdeposit;
format(string, sizeof(string), "You have taken %d mats from the storage facility, Materials Total: %d ", materialsdeposit,DynamicFactions[x][fMats]);
SCM(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "%s has just taken %d mats from the faction storage facility.",sendername,materialsdeposit);
SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string);
SaveDynamicFactions();
return 1;
}
else
{
SCM(playerid, COLOR_GREY, "There isn't that much mats in storage!");
}
}
else
{
SCM(playerid, COLOR_GREY , "You are not at the faction storage facility!");
}
}
else if(strcmp(x_nr,"put",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SCM(playerid, COLOR_GREY, "[uSAGE:] /fmats put [amount]");
return 1;
}
new materialsdeposit = strval(tmp);
if(!strlen(tmp))
{
SCM(playerid, COLOR_GREY, "[uSAGE:] /fmats put [amount]");
return 1;
}
if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ]))
{
if(materialsdeposit <= PlayerInfo[playerid][pMats])
{
PlayerInfo[playerid][pMats] =PlayerInfo[playerid][pMats]-materialsdeposit;
DynamicFactions[x][fMats] +=materialsdeposit;
format(string, sizeof(string), "You putted %d mats from the storage facility, Materials Total: %d ", materialsdeposit,DynamicFactions[x][fMats]);
SCM(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "%s has just putted %d mats from the faction storage facility.",sendername,materialsdeposit);
SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string);
SaveDynamicFactions();
return 1;
}
else
{
SCM(playerid, COLOR_GREY, "You don't have that much mats on you!");
}
}
else
{
SCM(playerid, COLOR_GREY, "You are not at the faction storage facility!");
}
}
else
{
SCM(playerid, COLOR_GREY, "Unknown fMats name !");
return 1;
}
}
else
{
SCM(playerid, COLOR_GREY, "You are not a gang member !");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/fdrugs", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAMember(playerid))
{
new x;
x = PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader];
/*if(DynamicFactions[x][fSafe] <= 0)
{
SCM(playerid, COLOR_WHITE, "The leader must buy a SAFE first !");
return 1;
}*/
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572))
{
format(string, sizeof(string), "Faction Drugs: $%d.", DynamicFactions[x][fDrugs]);
SCM(playerid, COLOR_WHITE, string);
}
SCM(playerid, COLOR_WHITE, "|______________________FactionsDrugs___________________|");
SCM(playerid, COLOR_WHITE, "| USAGE: /fdrugs [name] [ammount]");
SCM(playerid, COLOR_GREY, " | Available names: Take , Put");
SCM(playerid, COLOR_WHITE, "|______________________________________________________|");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, playername, sizeof(playername));
if(strcmp(x_nr,"take",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SCM(playerid, COLOR_GREY, "[uSAGE:] /fdrugs take [amount]");
return 1;
}
new materialsdeposit = strval(tmp);
if(!strlen(tmp))
{
SCM(playerid, COLOR_GREY, "[uSAGE:] /fdrugs take [amount]");
return 1;
}
if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572))
{
if(materialsdeposit <=DynamicFactions[x][fDrugs])
{
PlayerInfo[playerid][pDrugs] += materialsdeposit;
DynamicFactions[x][fDrugs]=DynamicFactions[x][fDrugs]-materialsdeposit;
format(string, sizeof(string), "You have taken %d drugs from the storage facility, Drugs Total: %d ", materialsdeposit,DynamicFactions[x][fDrugs]);
SCM(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "%s has just taken %d drugs from the faction storage facility.",sendername,materialsdeposit);
SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string);
SaveDynamicFactions();
return 1;
}
else
{
SCM(playerid, COLOR_GREY, "There isn't that much drugs in storage!");
}
}
else
{
SCM(playerid, COLOR_GREY , "You are not at the faction storage facility!");
}
}
else if(strcmp(x_nr,"put",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SCM(playerid, COLOR_GREY, "[uSAGE:] /fdrugs put [amount]");
return 1;
}
new materialsdeposit = strval(tmp);
if(!strlen(tmp))
{
SCM(playerid, COLOR_GREY, "[uSAGE:] /fdrugs put [amount]");
return 1;
}
if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572))
{
if(materialsdeposit <= PlayerInfo[playerid][pDrugs])
{
PlayerInfo[playerid][pDrugs] =PlayerInfo[playerid][pDrugs]-materialsdeposit;
DynamicFactions[x][fDrugs] +=materialsdeposit;
format(string, sizeof(string), "You putted %d drugs from the storage facility, Drugs Total: %d ", materialsdeposit,DynamicFactions[x][fDrugs]);
SCM(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "%s has just putted %d drugs from the faction storage facility.",sendername,materialsdeposit);
SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string);
SaveDynamicFactions();
return 1;
}
else
{
SCM(playerid, COLOR_GREY, "You don't have that much drugs on you!");
}
}
else
{
SCM(playerid, COLOR_GREY, "You are not at the faction storage facility!");
}
}
else
{
SCM(playerid, COLOR_GREY, "Unknown fDrugs name !");
return 1;
}
}
else
{
SCM(playerid, COLOR_GREY, "You are not a gang member !");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/fbalance", true) == 0)
{
if(IsAMember(playerid))
{
if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572))
{
format(string, sizeof(string), " You Have $%d in your hq.",PlayerInfo[playerid][pAccf]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
return 1;
}
if(strcmp(cmd, "/fdeposit", true) == 0)
{
if(IsAMember(playerid))
{
if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fdeposit [amount]");
format(string, sizeof(string), " You Have $%d in your hq.", PlayerInfo[playerid][pAccf]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fdeposit [amount]");
format(string, sizeof(string), " You Have $%d in your hq.", PlayerInfo[playerid][pAccf]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " You dont have that much");
return 1;
}
GivePlayerMoney(playerid,-cashdeposit);
new curfunds = PlayerInfo[playerid][pAccf];
PlayerInfo[playerid][pAccf]=cashdeposit+PlayerInfo[playerid][pAccf];
SendClientMessage(playerid, COLOR_WHITE, "|___ SAFE BOX ___|");
format(string, sizeof(string), " Old Balance: $%d", curfunds);
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), " Deposit: $%d",cashdeposit);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD6, "|-----------------|");
format(string, sizeof(string), " New Balance: $%d", PlayerInfo[playerid][pAccf]);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/fwithdraw", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pLeader] == 19)
{
if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fwithdraw [amount]");
format(string, sizeof(string), " You Have $%d in your hq.", PlayerInfo[playerid][pAccf]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fwithdraw [amount]");
format(string, sizeof(string), " You Have $%d in your hq.", PlayerInfo[playerid][pAccf]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > PlayerInfo[playerid][pAccf] || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " You dont have that much !");
return 1;
}
//ConsumingMoney[playerid] = 1;
GivePlayerMoney(playerid,cashdeposit);
PlayerInfo[playerid][pAccf]=PlayerInfo[playerid][pAccf]-cashdeposit;
format(string, sizeof(string), " You Have Withdrawn $%d from your hq Total: $%d ", cashdeposit,PlayerInfo[playerid][pAccf]);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
}
return 1;
}
[/pawn]
acelea fmats si fdrugs
ma intereseaza mult ..
/fwithdraw o pot face dar restu nu stiu cum
(
6 answers to this question
Recommended Posts