31.12.2011, 17:57
it kinda doesn't work :/
and in top of gamemode i added
Code:
if(!strcmp(cmdtext, "/taisyti", true)) { if(playerDB[playerid][specialybe]!=13){SendClientMessage(playerid,RED,"* this command is only for mechanik!"); return 1;} if(!IsPlayerInAnyVehicle(playerid)){ SendClientMessage(playerid,RED,"* you're not in a car"); return 1; } if(GetPlayerMoneyA(playerid)<50) { SendClientMessage(playerid,RED,"* price for 100hp is 50lt"); return 1; } GivePlayerMoneyA(playerid,-50); SendClientMessage(playerid,GREEN,"* added 100hp to vehicle!"); if(IsPlayerInAnyVehicle(playerid)) GetVehicleHealth(playerid, carHP); SetVehicleHealth(playerid, carHP+100); return 1; }
Code:
new Float:carHP;