textdraw help
#1

PHP код:
foreach(Playeri)
   {
       if(
GetTeam{i} == CLASS_COPS || GetTeam{i} == CLASS_CIA || GetTeam{i} == CLASS_FBI || GetTeam{i} == CLASS_ARMY)
       {
           if(
strval(text) == && IsPlayerInDynamicCP(playeridcoprefill))
           {
               
SetPlayerHealth(playerid100.0);
               
SendClientMessage(playeridLIGHTGREEN"Your health has been refilled!");
               return 
0;
           }
           if(
strval(text) == && IsPlayerInDynamicCP(playeridcoprefill))
           {
               
SetPlayerArmour(playerid100.0);
               
SendClientMessage(playeridLIGHTGREEN"Your armour has been refilled!");
               return 
0;
           }
           if(
strval(text) == && IsPlayerInDynamicCP(playeridcoprefill))
           {
               
GivePlayerWeapon(playerid222500);
               
GivePlayerWeapon(playerid252500);
               
GivePlayerWeapon(playerid322500);
               
SendClientMessage(playeridLIGHTGREEN"Your weapons has been refilled!");
               return 
0;
           }
           
           if(
strval(text) == && IsPlayerInDynamicCP(playeridcoprefill))
           {
                
HideMenu(playerid);
                 
format(stringsizeof(string), "~n~~p~Spawn Vehicle~n~~n~~y~1. ~w~Patrol Car~n~~y~2. ~w~Armour~n~~y~3. ~w~Weapons~n~~y~4. ~w~Vehicle");
                
TextDrawSetString(COPREFILL1string);
                
TextDrawShowForPlayer(playeridcopref);
                 
TextDrawShowForPlayer(playeridCOPREFILL1);
                 return 
1;
           }
      }
   } 
i made this for cop but i want when cop do number 4 so thye show to cop : ~n~~p~Spawn Vehicle~n~~n~~y~1. ~w~Patrol Car~n~~y~2. ~w~Armour~n~~y~3. ~w~Weapons~n~~y~4. ~w~Vehicle");:

this choose 1 car but i want make when they do 1 so they gave a car to cop. how to m make i dnt think u understand me but if u dnt so pls tell me i will explain u more but i ry need help. pls
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)