10.02.2013, 08:23
pawn Код:
CMD:fix(playerid, params[])
{
new vehicleid = GetPlayerVehicleID(playerid);
if(PlayerData[playerid][VipLevel] < 1) return 0;
IsPlayerInAnyVehicle(playerid);
SetVehicleHealth(vehicleid, 1000.0);
RepairVehicle(vehicleid);
return 1;
}
CMD:v(playerid, params[])
{
new string[128];
new name[MAX_PLAYERS_NAME];
if(PlayerData[playerid][VipLevel] < 1) return 0;
GetPlayerName(playerid, name,MAX_PLAYERS_NAME);//here was the problem
format(string, sizeof(string), "%s: %s", name);// onemore prob here tell that fast whats the next thing??
SendClientMessageToAll(-1, string);
return 1;
}