Where do i put this script?
#2

PHP код:
#define MAX_CARS (yourmax)  
enum vehData {  
    
VehID,  
    
VehTeam  
};  
new 
VehData[MAX_CARS][vehData];  
enum playerData {  
    
pTeam  
};  
new 
PlayerData[MAX_PLAYERS][playerData]; 
in the top of your script ( after includes ), replace (yourmax) for the max vehicles that you want to spawn it.

PHP код:
CMD:createveh(playeridparams[])  
{  
    static  
    
model,  
    
team;  
    if (
sscanf(params"dd"modelteam))  
    {  
        
SendClientMessage(playerid, -1"/createveh <model> <team>");  
        return 
1;  
    }  
    return 
1;  

in the end of your gamemode ( not in a callback ).
Reply


Messages In This Thread
Where do i put this script? - by TheTrue - 11.04.2015, 18:53
Re : Where do i put this script? - by AlexBlack - 11.04.2015, 18:55
Re: Where do i put this script? - by TheTrue - 11.04.2015, 19:03
Re : Where do i put this script? - by AlexBlack - 11.04.2015, 19:25

Forum Jump:


Users browsing this thread: 1 Guest(s)