Error with car command
#10

Denying thats not my code this is
PHP код:
CMD:datguy(playeridparams[]) 
    { 
    
//---------------------[Variables to check Tylers name]------------------- 
    
new sendername[MAX_PLAYER_NAME]; 
    new 
datguy
    
GetPlayerName(playeridsendernamesizeof(sendername)); 
    if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playeridRED"ERROR: You already have a Vehicle"); 
    { 
        if(
strcmp(sendername"Tyler_Hale"false) == 0
        { 
            
SendClientMessage(playerid,RED,"You can not perform this command you are not Tyler Hale"); 
        } 
        if(!
strlen(params)) 
        { 
            
SendClientMessage(playerid,-1"Usage: /datguy"); 
            return 
SendClientMessage(playerid,ORANGE,"Function: Will create datguy car made for Tyler"); 
        } 
    } 
    new 
Float:X,Float:Y,Float:Z,Float:Angle
    
GetPlayerPos(playerid,X,Y,Z); 
    
GetPlayerFacingAngle(playerid,Angle); 
    
datguy SetVehicleNumberPlate(CreateVehicle(545,X,Y,Z,Angle,158,158,-1),"DATGUY"); 
    
AddVehicleComponent(datguy,1010);// nitro 
    
AddVehicleComponent(datguy,1076);//wire rims 
    
return 1

Reply


Messages In This Thread
Error with car command - by lramos15 - 27.02.2013, 00:49
Re: Error with car command - by Scrillex - 27.02.2013, 08:15
Re: Error with car command - by lramos15 - 27.02.2013, 18:42
Re : Error with car command - by yusei - 27.02.2013, 18:58
Re: Error with car command - by lramos15 - 28.02.2013, 00:54
Re: Error with car command - by AlphaPac - 28.02.2013, 01:10
Re: Error with car command - by lramos15 - 28.02.2013, 18:46
Re: Error with car command - by lramos15 - 28.02.2013, 22:01
Re: Error with car command - by Denying - 01.03.2013, 14:04
Re: Error with car command - by lramos15 - 01.03.2013, 18:18

Forum Jump:


Users browsing this thread: 1 Guest(s)