Help - 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 (
/showthread.php?tid=357857)
Help -
Tuntun - 08.07.2012
Hello
help me please... i am use a rank system...
So... My Rank Is Pilot.
but when i login only show Login Tuntun..
But i want to show my rank like: Pilot Tuntun Login.
Please help... how to add this?
Also.. i am script some thing and i see no effect
i script this:
if(strcmp(cmd, "/jetpack", true) == 0)
{
if(PInfo[playerid][AdminLevel] > 2)
{
SendClientMessage(playerid, COLOR_WHITE, "You have jetpack now!");
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE JETPACK);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_ERROR, "You are not an administrator or server Owner!");
return 1;
}
Re: Help -
coole210 - 08.07.2012
Use PAWN tags around code, please.
The problem you're having for the jetpack code is an error in the special action.
pawn Код:
//You wrote:
SPECIAL_ACTION_USE JETPACK
//Should be:
SPECIAL_ACTION_USE_JETPACK
For your first question, what you're looking for is formatting a string and sending it to all players under the login code.
More information can be found here:
https://sampwiki.blast.hk/wiki/Format
Re: Help -
jaami - 08.07.2012
Код:
if(PInfo[playerid][AdminLevel] > 2)
have you enum this PInfo?
Its hard to help like this. Whats the line that show that you are pilot? Give us the line