another problem[solved]
#5

Quote:
Originally Posted by Don Correlli
https://sampwiki.blast.hk/wiki/GetPlayerVehicleID

pawn Код:
if(strcmp("/respray", cmdtext, true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
ResprayVehicle(GetPlayerVehicleID(playerid));
}
return 1;
}
thaaanks! it worked!
Quote:
Originally Posted by cloud9
idk wat u that seif thing is but is simple like
pawn Код:
if (strcmp("/respray", cmdtext, true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicle,1000.0);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Error: You must be in a vehicle to use this command!");
}
return 1;
}
seif's script repair car's body , not just health!
Reply


Messages In This Thread
another problem[solved] - by Serediucr - 19.06.2009, 15:02
Re: another problem - by Serediucr - 19.06.2009, 15:21
Re: another problem - by Correlli - 19.06.2009, 15:46
Re: another problem - by cloud9 - 19.06.2009, 15:49
Re: another problem - by Serediucr - 19.06.2009, 16:00
Re: another problem[solved] - by MenaceX^ - 19.06.2009, 16:04

Forum Jump:


Users browsing this thread: 3 Guest(s)