problem with command /ram - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: problem with command /ram (
/showthread.php?tid=75481)
problem with command /ram -
dlc - 02.05.2009
When NG / Cop write the / ram says "you are not a Cop / Soldier!"
Please help me to fix this command:
Код:
}
if(strcmp(cmd, "/ram", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] == 2 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 10)
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
SetPlayerInterior(playerid,HouseInfo[i][hInt]);
SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
GameTextForPlayer(playerid, "~r~Breached the door", 5000, 1);
PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
PlayerInfo[playerid][pLocal] = i;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not a Cop / Soldier !");
return 1;
}
}
return 1;
}
This is the code
Re: problem with command /ram -
HB - 02.05.2009
You're checking this: if person is team 2, 6 or leader of team 6 send the message "youre not cop or soldier".
Roughly said.
Re: problem with command /ram -
Gappy - 02.05.2009
If your using the GF, you need to do /setteam <id> 2 (or something like that)
I havn't played around with the GF script in ages so i could be wrong, but give it a go
edit:
Quote:
Originally Posted by иєσz
You're checking this: if person is team 2, 6 or leader of team 6 send the message "youre not cop or soldier".
Roughly said.
|
You mean if you are NOT in team 2, leader of team 6 or leader of team 10, it will send "You're not a cop / soldier".