setting a restriction
#1

Hey guys , I wanna learn how to restrict players from joining a police class , and to join it an admin must allow players via a cmd to join police , i'm using dcmd :P .

Will be a great help to show me a script like that , which i will learn alot from/
Reply
#2

Lets say your class/team variable is:

GetPlayerClass[MAX_PLAYERS];

and your teams where say:

TEAM_ONE

and

TEAM_TWO

It would look like:

pawn Код:
if(GetPlayerClass[playerid] == TEAM_ONE)
{
    //They ARE in TEAM_ONE
}
else if(GetPlayerClass[playerid] != TEAM_TWO)
{
    //They are NOT in TEAM_TWO
}
//Etc..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)