[HELP] A small problem - 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: [HELP] A small problem (
/showthread.php?tid=125628)
[HELP] A small problem -
FreddeN - 04.02.2010
Hello guys, I need a little help with this two commands, I'm trying to put rank and team to the commands, but this don't work.
Код:
if(strcmp(cmd, "/olspd", true) == 0)
{
if(gTeam[playerid] == TEAM_LSPD)
{
if(PlayerInfo[playerid][PoliceRank] >= 1)
{
MoveObject(olspd,246.411529,72.640029,1000.911437,4.0);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not a Police Officer.");
}
}
Код:
if(strcmp(cmd, "/clspd", true) == 0)
{
if(gTeam[playerid] == TEAM_LSPD)
{
if(PlayerInfo[playerid][PoliceRank] >= 1)
{
MoveObject(olspd,246.411529,72.640029,1003.640625,4.0);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not a Police Officer.");
return 1;
}
}
Thanks
Re: [HELP] A small problem -
nastoe - 04.02.2010
what errors you get? Post it
Re: [HELP] A small problem -
FreddeN - 04.02.2010
Quote:
Originally Posted by ExtremePower
what errors you get? Post it
|
Nah, no erros, if I had erros, I would have posted it.
Re: [HELP] A small problem -
nastoe - 04.02.2010
where is problem then? That dont working? And say me what you wanna that commands to do example /example (that command give 1000$)
Re: [HELP] A small problem -
FreddeN - 04.02.2010
Quote:
Originally Posted by ExtremePower
where is problem then? That dont working? And say me what you wanna that commands to do example /example (that command give 1000$)
|
If you payed a little more attention to the text and the command, you can see how I'm trying to put gTeam and PoliceRank to the commands, but what I did don't work.
Re: [HELP] A small problem -
FreddeN - 04.02.2010
BUMP
Any ideas?