SendClientMessage(playerid, COLOR_RED, "[SERVER]: You are not in a vehicle!");
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, "ERROR: You are not a Vip Member!"); return 1; } }
Originally Posted by kmzr
|
Originally Posted by dclaw
Quote:
|
Originally Posted by dclaw
Hello, i searched an hour for 2 command's.
The command /mute and /vr <- Vehicle Repair i think they easy to make, if u are good script. Im not a good scripter Can somebody make one of them for me? I want it only for VIP. Here's The line: Код:
if(IsPlayerVipMember(playerid)) |
if(strcmp(cmdtext,"/vr",true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(IsPlayerVipMember(playerid)) {
SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
RepairVehicle(GetPlayerVehicleID(playerid));
}}}}
Originally Posted by Razvann
pawn Код:
|
if(strcmp(cmdtext, "/vr", true) == 0) { if(IsPlayerVipMember(playerid)) { SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0); RepairVehicle(GetPlayerVehicleID(playerid)); } else SendClientMessage(playerid, COLOR_RED, "ERROR: You are not a Vip Member!"); return 1; }
Originally Posted by dclaw
I have this now:
Код:
if(strcmp(cmdtext, "/vr", true) == 0) { if(IsPlayerVipMember(playerid)) { SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0); RepairVehicle(GetPlayerVehicleID(playerid)); } else SendClientMessage(playerid, COLOR_RED, "ERROR: You are not a Vip Member!"); return 1; } Who can make it that there's coming a text with: "U need to be in a vehicle to use 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, "ERROR: You are not a Vip Member!");
return 1;
}
}