16.10.2010, 12:27
Hello I made this command.. It isn't working.. Can anyone fix it for me (im not getting errors it just doesn't do anything ingame)
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/fixveh", cmdtext, true, 10) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name, "[BM]Jimmy", true) == 0)
RepairVehicle(GetClosestCar(playerid));
SetVehicleHealth(vehicleid, 1000.0);
return 1;
}
return 0;
}