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



Guys - daniel2516 - 24.05.2016

I have some SWAT,CIA,Army, and COP, Can someone help me that every player should have score to access this team,
example: SWAT needs 2000+ score to access.


Re: Guys - CSLangdale - 24.05.2016

Wanna show us your codes for them teams?


Re: Guys - daniel2516 - 24.05.2016

}else if(classid == 7)
{
GameTextForPlayer(playerid, "~b~SWAT", 3000, 3);
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
SetPlayerFacingAngle(playerid, 94.0821);
SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);


Re: Guys - xTURBOx - 24.05.2016

PHP код:
}else if(classid == && GetPlayerScore(playerid) >= 2000)// checkign for score
{
    
GameTextForPlayer(playerid"~b~SWAT"30003);
    
SetPlayerInterior(playerid1);
    
SetPlayerPos(playerid214.7581,-41.0411,1002.0234);
    
SetPlayerFacingAngle(playerid94.0821);
    
SetPlayerCameraPos(playerid212.6498,-41.0299,1002.0234);
    
SetPlayerCameraLookAt(playerid214.7581,-41.0411,1002.0234); 



Re: Guys - daniel2516 - 25.05.2016

Thanks, @xTURBOx