Car god mode
#1

Well, I tried making a command to set a car invicible, but its giving me this error:
D:\SAMP\gamemodes\MMM.pwn(14910) : error 017: undefined symbol "vehicleid"
What would be the smartest way to get the id of the vehicle the person currently is in?
pawn Код:
if(strcmp(cmdtext,"/cargodmode",true) == 0)
    {
    GetPlayerVehicleID(playerid);
    SetVehicleHealth(vehicleid, 10000000000);
    SendClientMessage(playerid,COLOR_ARED, "Vehicle made indestructable");
    }
    return 1;
 }
Reply
#2

i Think Better autofix
Reply
#3

new vehicleid = GetPlayerVehicleID(playerid);
Reply
#4

Thanks
Reply
#5

Better way would be to make looping.
Reply
#6

Quote:
Originally Posted by King Ace
Посмотреть сообщение
Better way would be to make looping.
\o/ Why ?
Reply
#7

Also use
pawn Код:
IsPlayerInAnyVehicle(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)