Help me Please! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me Please! (
/showthread.php?tid=459691)
Help me Please! -
Muhammad1 - 24.08.2013
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);
}
Re: Help me Please! -
efrim123 - 24.08.2013
i dont think it is possible
Re: Help me Please! -
Muhammad1 - 24.08.2013
I want to send client message to another team that not allowed to use this command only india team can use it
Re: Help me Please! -
JimmyCh - 24.08.2013
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!");
Re: Help me Please! -
Muhammad1 - 24.08.2013
Thanks you got REP++