Cop car siren
#1

Hi im looking for a script request kinda like this [ame]http://www.youtube.com/watch?v=4RRAVsdsSdA&feature=related[/ame] well exact same but what would i do so its faction restricted command?
Reply
#2

Quote:
Originally Posted by MS:RP Mason
Посмотреть сообщение
well exact same but what would i do so its faction restricted command?
You have to make a check if the player's faction is in the correct faction you want. If you use godfather, I assume it uses something like PlayerInfo[playerid][pFaction].
pawn Код:
if(PlayerInfo[playerid][pFaction] == 1) // If the player is in Faction 1.
{
   //Your code here
}
Reply
#3

Quote:
Originally Posted by Biesmen
Посмотреть сообщение
You have to make a check if the player's faction is in the correct faction you want. If you use godfather, I assume it uses something like PlayerInfo[playerid][pFaction].
pawn Код:
if(PlayerInfo[playerid][pFaction] == 1) // If the player is in Faction 1.
{
   //Your code here
}
Okay thanks so i could add multiple factions instead of just LSPD?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)