Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Call_me_Dad

Pages: [1]
1
mIRC/pawn Scripting / Re: help me
« on: January 10, 2011, 01:38:33 am »
Code: [Select]
if(strcmp(cmd,"!fix",true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,COLOR_GREY,"You're not in a vehicle!");
            else if ( (GetPlayerVehicleID(playerid) == 155) || ( GetPlayerVehicleID(playerid) == 177) ) SendClientMessage(playerid,COLOR_RED,"You cant fix this vehicle");
else {
SetVehicleTyre(GetPlayerVehicleID(playerid), 1);
SetVehicleLights(GetPlayerVehicleID(playerid), 1);
SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
SendClientMessage(playerid,COLOR_YELLOW,"Your car has been fixed!");

}
         return 1;
}

2
mIRC/pawn Scripting / Re: help me
« on: January 09, 2011, 02:49:11 pm »
Find out the vehicle ID of Hunter and Sea sparrow.

then add:
Code: [Select]
else if ((GetPlayerVehicleID(playerid)==HUNTER_ID) || (GetPlayerVehicleID(playerid)==SPARROW_ID)) SendClientMessage(playerid,COLOR_RED,"You cant fix this vehicle");
to ur command

Pages: [1]