What can I do for not spawn Vehicle npc
#1

What can I do for not spawn Vehicle npc





PHP код:
[PHP]if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  
{
  
  
  
  
         new 
MyFirstNPCVehicle;
         
MyFirstNPCVehicle CreateVehicle(5600.00.05.00.0335000);
         
GetPlayerName(playeridnpcnamesizeof(npcname)); //Getting the NPC's name.
         
if(!strcmp(npcname"Taxi"true)) //Checking if the NPC's name is MyFirstNPC
    
{
          
SetPlayerSkin(playerid193);
          
SetPlayerColor(playerid,COLOR_SEXYGREEN);
          
label[playerid] = Create3DTextLabel("TAXI",COLOR_SAFID,30.0,40.0,50.0,40.0,0);
          
Attach3DTextLabelToPlayer(label[playerid], playerid0.00.00.4);
          
PutPlayerInVehicle(playeridMyFirstNPCVehicle0); //Putting the NPC into the vehicle we created for it.
    
}
         
MyFirstNPCVehicle CreateVehicle(4870.00.05.00.0335000);
         
GetPlayerName(playeridnpcnamesizeof(npcname)); //Getting the NPC's name.
         
if(!strcmp(npcname"Helikopter"true)) //Checking if the NPC's name is MyFirstNPC
    
{
          
SetPlayerSkin(playerid246);
          
SetPlayerColor(playerid,COLOR_SEXYGREEN);
          
label[playerid] = Create3DTextLabel("khalaban",COLOR_SAFID,30.0,40.0,50.0,40.0,0);
          
Attach3DTextLabelToPlayer(label[playerid], playerid0.00.00.1);
          
PutPlayerInVehicle(playeridMyFirstNPCVehicle0); //Putting the NPC into the vehicle we created for it.
    
}
    
    
    return 
1;
  } 
[/PHP]
Reply


Messages In This Thread
What can I do for not spawn Vehicle npc - by par30 - 08.11.2013, 11:56
Re: What can I do for not spawn Vehicle npc - by Konstantinos - 08.11.2013, 12:00
Re: What can I do for not spawn Vehicle npc - by par30 - 08.11.2013, 12:25
Re: What can I do for not spawn Vehicle npc - by par30 - 08.11.2013, 12:53

Forum Jump:


Users browsing this thread: 1 Guest(s)