What suppose to do this command? :
Code:
if(strcmp(cmd, "/black", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == TEAM_ZETAS)
{
if (PlayerToPoint(3, playerid,1116.2616,-972.3250,42.7656))
{
new ranktext[256];
switch(PlayerInfo[playerid][pRank])
{
case 1: format(ranktext, sizeof(ranktext), "%s", TeamInfo[PlayerInfo[playerid][pMember]][fRank1]);
case 2: format(ranktext, sizeof(ranktext), "%s", TeamInfo[PlayerInfo[playerid][pMember]][fRank2]);
case 3: format(ranktext, sizeof(ranktext), "%s", TeamInfo[PlayerInfo[playerid][pMember]][fRank3]);
case 4: format(ranktext, sizeof(ranktext), "%s", TeamInfo[PlayerInfo[playerid][pMember]][fRank4]);
case 5: format(ranktext, sizeof(ranktext), "%s", TeamInfo[PlayerInfo[playerid][pMember]][fRank5]);
case 6: format(ranktext, sizeof(ranktext), "%s", TeamInfo[PlayerInfo[playerid][pMember]][fRank6]);
}
if(Func[playerid]==0)
{
if(PlayerInfo[playerid][pMember] == TEAM_ZETAS)
SendClientMessage(playerid, COLOR_WHITE, "Òè âêëþ÷è ôóíêöèÿòà!");
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Func[playerid] = 1;
}
else if(Func[playerid]==1)
{
SendClientMessage(playerid, COLOR_WHITE, "Òè èçêëþ÷è ôóíêöèÿòà!");
if(PlayerInfo[playerid][pMember] == TEAM_ZETAS)
format(string, sizeof(string), "", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Func[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Òè íå ñè íà ìÿñòîòî çà ñìÿíà!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Òè íå ñè ÷ëåí íà Black Mafia!");
}
}
return 1;
}
Aucun commentaire:
Enregistrer un commentaire