SA-MP Forums Archive
Safe 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: Safe help (/showthread.php?tid=380581)



Safe help - trapstar2020 - 26.09.2012

Okay im created a safe system but i need help with withdraw command, how to i put if
Код:
Ftype == PlayerInfo[playerid[pTeam]
idk the code has failed me does anyone have any idea?! everything iz perfect accept actually setting the safe to a particular team

What im trying to is if the fType the same as the player team

like if ftype=1 and pteam= 1 the player can withdraw from the safe otherwise send a return message


Re: Safe help - MarTaTa - 26.09.2012

So basicly you want to let only people, members of certain team / family / group or whatever to withdraw from the safe ? If yes it should be like this ->
pawn Код:
CMD:withdraw(playerid, params[])
{
       if(Ftype == PlayerInfo[playerid][pTeam])
       {
               // Your code goes here
        }
       return 1;
}
If you can't make it, just post here your command code, I'll make it for you