public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerCheckpoint(playerid, 648.8143,1687.6963,6.9922,3.0);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
SendClientMessage(playerid, 0x33CCFFAA,"You Have Repaired Your Vehicle, And You Have Payed $100");
}
return 1;
}
new vehicleid;
Originally Posted by charles30
add in your public
Код:
new vehicleid; |
public OnPlayerEnterCheckpoint(playerid) { SetPlayerCheckpoint(playerid, 648.8143,1687.6963,6.9922,3.0); SetVehicleHealth(vehicleid, 100.0); SendClientMessage(playerid, 0x33CCFFAA,"You Have Repaired Your Vehicle, And You Have Payed $100"); return 1; }
public OnPlayerEnterCheckpoint(playerid){ SetPlayerCheckpoint(playerid, 648.8143,1687.6963,6.9922,3.0); if(SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0)){ SendClientMessage(playerid,0x33CCFFAA,"You Have Repaired Your Vehicle, And You Have Payed $100"); } return 1; }
Originally Posted by Geekzor
thank you guys
![]() but i want to know a bit more ![]() about this ... ye my car is repaired now but how i can make when i come to this checkpoint it show mesage just once ![]() atm message come to chat 100000x times if i am in checkpoint when i leave checkpoint its ok ... 1. How i can Fix mesage spam? check this pic: /imageshack/i/samp448.png/ 2. How i can make when Playercome to checkpoint he pay $100 EDIT: 3. How i can make when player come fith vehicle that have ''1000.0'' life - full life/health the mesage show up with RED: ''You Dont Need To Repair Your Vehicle'' 4. And how i can make on this checkpoint ''picture'' repair key 5. and how to make: when player spawn he DONT see checkpoint on the map: /imageshack/i/samp446.png/ just when is player near checpoint he see it on map... /imageshack/i/samp447.png/ HERE IS MY GAMEMODE: http://pastebin.com/d476514e4 now i think i tell all my problems ![]() i need to just fix that ![]() ty |
Originally Posted by Geekzor
thank you guys
![]() but i want to know a bit more ![]() about this ... ye my car is repaired now but how i can make when i come to this checkpoint it show mesage just once ![]() atm message come to chat 100000x times if i am in checkpoint when i leave checkpoint its ok ... 1. How i can Fix mesage spam? check this pic: /imageshack/i/samp448.png/ 2. How i can make when Playercome to checkpoint he pay $100 EDIT: 3. How i can make when player come fith vehicle that have ''1000.0'' life - full life/health the mesage show up with RED: ''You Dont Need To Repair Your Vehicle'' 4. And how i can make on this checkpoint ''picture'' repair key 5. and how to make: when player spawn he DONT see checkpoint on the map: /imageshack/i/samp446.png/ just when is player near checpoint he see it on map... /imageshack/i/samp447.png/ HERE IS MY GAMEMODE: http://pastebin.com/d476514e4 now i think i tell all my problems ![]() i need to just fix that ![]() ty |