Help me Please!
#1

how can i make this command only for India?


pawn Код:
CMD:indiapodiumup(playerid,params[])
{
    #pragma unused params
        MoveObject(dancepod1, -275.721069, 1799.432617, 85.699089,10.0);
        SendClientMessage(playerid,COLOR_RED,"The Podium Is Going Up ");
        SetPVarInt(playerid, "Going Up", 1);
        new str[128];
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "\"%s\" Is Making Podium Up", str);
        return SendClientMessageToAll(COLOR_RED, str);
       
}
Reply
#2

i dont think it is possible
Reply
#3

I want to send client message to another team that not allowed to use this command only india team can use it
Reply
#4

It depends on how you set up the "Indian Team".
If you used for example, gTeam[playerid] = India, on the command you will need to put the following:
pawn Код:
if(gTeam[playerid] == India)
{
// ur code here
}
else return SendClientMessage(playerid, -1, "You need to be apart of the Indian team to use this!");
Reply
#5

Thanks you got REP++
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)