help-me+rep
#1

how can I make this check functionally?


my code(not working)
PHP код:
new xtrailer;
public 
OnGameModeInit()
{
    
xtrailer AddStaticVehicleEx(5911800.7312,630.3682,10.8203,278.7035001001, -10);
    
    return 
1;
}
CMD:test(playerid)
{
    if( 
GetVehicleModelGetVehicleTrailerGetPlayerVehicleID(playerid) ) ) == xtrailer)
    {
            
//Command stuff
    
}
    else return 
SendClientMessage(playerid, -1"ERROR: You must attach a (xtrailer) trailer to your vehicle first!");
    return 
0;

Reply
#2

if( IsPlayerInAnyVehicle( GetVehicleTrailer( GetPlayerVehicleID(playerid) ) ) == xtrailer)
Reply
#3

pawn Код:
if( GetVehicleTrailer( GetPlayerVehicleID(playerid) ) == xtrailer)
Reply
#4

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
pawn Код:
if( GetVehicleTrailer( GetPlayerVehicleID(playerid) ) == xtrailer)
very good, it's working now tks+rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)