SA-MP Forums Archive
Help.. i really need 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: Help.. i really need help.. (/showthread.php?tid=318807)



Help.. i really need help.. - darwinali - 16.02.2012

Hello guys.. can someone help me how to script the FBI system when you go Undercover you get a N/C and if you go on duty you got your name back.. thank you i hope you guys help me..

there is a command too of /changeclothes on the car.. if you know how to do it please help.


Re: Help.. i really need help.. - deltapro - 16.02.2012

pawn Код:
if(strcmp(cmdtext, "/undercover",true)==0){
            if(PlayerInfo[playerid][playerteam]==FBI{
                if(IsPlayerInSphere(playerid,221.7848,182.8990,1003.0313,5)){ // You can change the coordinates
{
                    if(PlayerInfo[playerid][ranklvl]>=1 && PlayerInfo[playerid][female]==0){
                                SetPlayerColor(playerid,COLOR_WHITE);
                ResetPlayerWeapons(playerid); // Remove his weapons
                SetPlayerSkin(playerid,211);                            
                        SendClientMessage(playerid,COLOR_RED,"[ERROR] You are not allowed.
                        return 1;
Work 100% ..


Re: Help.. i really need help.. - darwinali - 22.02.2012

Thank you Deltapro.. I am going to test it.. l'll pm you if i have a problem.


Re: Help.. i really need help.. - darwinali - 22.02.2012

Yo.. i'm telling ya.. When you are FBI.. example you're on duty when u do /fbi and you take the obtion "Undercover" it let you to take a "Name Change" a name you want example "Tyler_Roberto".. then when u finish it.. and you want your name back you select Duty and it goes to your normal like "Armando_Alejandro"..