18.10.2009, 16:37
Guys i'm using this on my gamemode file:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/repair", cmdtext))
{
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!");
}
else SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
return 1;
}
}
and it's not working.
Can you please help me?
Thanks
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/repair", cmdtext))
{
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!");
}
else SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
return 1;
}
}
and it's not working.
Can you please help me?
Thanks