[Help] Command Work's, 50%
#1

i got a command /vr. if im out a car. i get this:


[Server]: You are not a Vip Member
[Server]: You are not in a vehicle!
But i setted myself vip.
Who can fix this?

Код:
	if(strcmp(cmdtext, "/vr", true) == 0)
		{
			if(IsPlayerVipMember(playerid))
			{
				if(IsPlayerInAnyVehicle(playerid))
				{
					SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
					RepairVehicle(GetPlayerVehicleID(playerid));
				}
				else SendClientMessage(playerid, COLOR_RED, "[SERVER]: You are not a Vip Member!");
				{
					if(!IsPlayerInAnyVehicle(playerid))
					SendClientMessage(playerid, COLOR_RED, "[SERVER]: You are not in a vehicle!");
				}
				return 1;
			}
		}
Reply
#2

pawn Код:
if(strcmp(cmdtext, "/vr", true) == 0)
{
    if(!IsPlayerVipMember(playerid)) return SendClientMessage(playerid, COLOR_RED, "[SERVER]: You are not a Vip Member!");
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "[SERVER]: You are not in a vehicle!");
    RepairVehicle(GetPlayerVehicleID(playerid));
    return 1;
}
Reply
#3

Quote:
Originally Posted by //exora
pawn Код:
if(strcmp(cmdtext, "/vr", true) == 0)
{
    if(!IsPlayerVipMember(playerid)) return SendClientMessage(playerid, COLOR_RED, "[SERVER]: You are not a Vip Member!");
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "[SERVER]: You are not in a vehicle!");
    RepairVehicle(GetPlayerVehicleID(playerid));
    return 1;
}
Do you maybe have a /mute cmd for me?
Reply
#4

Quote:
Originally Posted by DaRulz
And if you still need help, use >>> this <<< before posting.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)