25.06.2009, 08:38
Hi i need a script that will allow me to go ..
/fix
then it fix the car and take $1000 away
Thx for your time
/fix
then it fix the car and take $1000 away
Thx for your time
if(strcmp(cmdtext, "/fix", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, " Not in a vehicle.");
if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, 0xFFFFFFFF, " Not enough cash.");
else
{
SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
GivePlayerMoney(playerid, -1000);
SendClientMessage(playerid, 0xFFFFFFFF, " Vehicle fixed!");
}
return 1;
}
Originally Posted by //exora
Took me 5,72 seconds.
|
Originally Posted by [UF
XtreaMeR ]
Quote:
|