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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help (
/showthread.php?tid=143216)
Help -
ScottCFR - 21.04.2010
Ok, I want this to read if their account has DrugLord permissions (Druglord: 1) here's what i have
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(AccountInfo[playerid][Logged] == 1)
{
if(GetPlayerSkin(playerid) == 123)
{
if(AccountInfo[playerid][DrugLord] == 1)
{
return 1;
}
else
{
GameTextForPlayer(playerid, "You don't have permissions for this class!", 5000, 5);
return 0;
}
}
}
else
{
SendClientMessage(playerid, RED, "Error: You must register or login before spawn!");
SendClientMessage(playerid, RED, "/login [password] *** /register [password]");
return 0;
}
return 1;
}
EDIT: It keeps saying that they don't have permissions, Though their account is set to 1
Re: Help -
CAR - 21.04.2010
What's your problem Exactly?
Till what of their account is set to 1?
Change your title...
Re: Help -
ScottCFR - 21.04.2010
I do need help, Why would i change the title.
For some reason it won't read their profile and see if their able to spawn as a DrugLord
Re: Help -
CAR - 21.04.2010
Quote:
Originally Posted by ScottCFR
I do need help, Why would i change the title.
|
a) Use a proper subject
Something like '------------>HELP PLZ FAST NOW HELP!!!!!!!!!!!<----------' is not very descriptive and very annoying.
Make a proper subject with a short description, such as 'Gates won't open' or 'Game crashes instantly'
@ READ THIS BEFORE POSTING
So I'm not going to help you and I'm going offline now