Hello everybody, I got an RP mod, and I got the command /floadguns, I hope you will understand it
Код HTML:
if(strcmp(cmd, "/floadguns", true) == 0)
{
new z;
if(IsPlayerConnected(playerid)) z++;
{
if(IsAMember(playerid))
{
SetPlayerCheckpoint(playerid,271.4973,2895.5696,10.0509,5);
CP[playerid] = 8;
if(IsAFactionBurrito(GetPlayerVehicleID(playerid)))
{
if(PlayerToPoint(10,playerid,271.4973,2895.5696,10.0509))
{
if(z > 2)
{
if(FactionGuns[GetPlayerVehicleID(playerid)] == 30)
{
SendClientMessage(playerid,COLOR_ERROR,".: [ERROR] You already loaded guns in your Burrito. go and load Bullets :.");
SetPlayerCheckpoint(playerid,-387.5733,2228.7266,42.4135,5);
CP[playerid] = 8;
}
else
{
new fam = PlayerInfo[playerid][pMember];
format(string,sizeof(string),"[ %s ] You have successfuly loaded 30 guns in your Burrito. Now go to the next checkpoint to buy bullets.",FamilyInfo[fam][fName]);
SendClientMessage(playerid,COLOR_FACTION,string);
FactionGuns[GetPlayerVehicleID(playerid)] = 30;
SetPlayerCheckpoint(playerid,-387.5733,2228.7266,42.4135,5);
CP[playerid] = 8;
}
}
else
{
SendClientMessage(playerid,COLOR_ERROR,".: [ERROR] You are not enough people in the Burrito :.");
}
}
else
{
SendClientMessage(playerid,COLOR_ERROR,".: [ERROR] You are not at the correct place :.");
}
}
else
{
SendClientMessage(playerid,COLOR_ERROR,".: [ERROR] You must be in a Burrito :.");
}
}
else
{
SendClientMessage(playerid,COLOR_ERROR,".: [ERROR] You are not a part of a faction. You can't use this command :.");
}
}
return 1;
}
Now while I am trying to start this burrito run, with 3 players, It's write to me that there are no enough people in the burrito.