16.06.2012, 15:26
First. new mechanic;
2. if (strcmp("/repair", cmdtext, true, 10) == 0)
{
mechanic = 0; return SendClientMessage(playerid,0xD6D6D6AA,"You are not mechanic, donot use this command again");
{
mechanic = 1;
{
SetVehicleHealth(411, 1000);
SendClientMessage(playerid,0xD6D6D6AA,"Sir!, The Vehicle has been repaired, and Your moneys have been -500");
GivePlayerMoney(playerid, -500);
}
}
return 1;
}
return 0;
}
2. if (strcmp("/repair", cmdtext, true, 10) == 0)
{
mechanic = 0; return SendClientMessage(playerid,0xD6D6D6AA,"You are not mechanic, donot use this command again");
{
mechanic = 1;
{
SetVehicleHealth(411, 1000);
SendClientMessage(playerid,0xD6D6D6AA,"Sir!, The Vehicle has been repaired, and Your moneys have been -500");
GivePlayerMoney(playerid, -500);
}
}
return 1;
}
return 0;
}