Help Me Fixing This Bug
#7

Add this to the top of your script somewhere:
Код:
new DonatorCarTimer[MAX_PLAYERS];
Switch the command to this:
Код:
CMD:dcar(playerid,params[]) {
 if(PlayerInfo[playerid][LoggedIn] == 1) {
		if(PlayerInfo[playerid][dRank] >= 1) {
			new Float:x,Float:y,Float:z;
			GetPlayerPos(playerid,x,y,z);
			CreateVehicle(411,x,y,z,100,0,0,-1);
			PutPlayerInVehicle(playerid,411,2);
			SetTimerEx("DonatorCar", 300000, 0, "i", playerid);
			SendClientMessage(playerid, red, "WARNING: The car will despawn in 5 minutes!");
		} else return SendClientMessage(playerid,red,"ERROR: You Need Atleast Donor Rank 1 To Use This Command");
 } else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");
Add this anywhere in the script:
Код:
forward DonatorCar(playerid);
public DonatorCar(playerid)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    DestroyVehicle(vehicleid);
    KillTimer(DonatorCarTimer[playerid]);
}
Reply


Messages In This Thread
Help Me Fixing This Bug - by Speaker - 10.03.2017, 03:10
Re: Help Me Fixing This Bug - by coool - 10.03.2017, 03:54
Re: Help Me Fixing This Bug - by oSAINTo - 10.03.2017, 03:57
Re: Help Me Fixing This Bug - by Speaker - 10.03.2017, 04:11
Re: Help Me Fixing This Bug - by oSAINTo - 10.03.2017, 04:36
Re: Help Me Fixing This Bug - by Speaker - 10.03.2017, 04:38
Re: Help Me Fixing This Bug - by oSAINTo - 10.03.2017, 04:41
Re: Help Me Fixing This Bug - by Toroi - 10.03.2017, 04:52
Re: Help Me Fixing This Bug - by oSAINTo - 10.03.2017, 04:54
Re: Help Me Fixing This Bug - by Toroi - 10.03.2017, 05:06

Forum Jump:


Users browsing this thread: 2 Guest(s)