29.01.2018, 10:38
PHP код:
YCMD:respawn(playerid,params[], help)
{
new id,string[256];
if(PlayerData[playerid][Admin] < 3) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
if(sscanf(params, "u", id)) return SendUsage(playerid,"/respawn <Name/Playerid>");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");
SpawnPlayer(id);
format(string, sizeof(string), "* You have respawned player %s", PlayerData[id][Name]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
format(string, sizeof(string), "* You have been respawned by Admin %s", PlayerData[playerid][Name]);
SendClientMessage(id, COLOR_LIGHTRED, string);
format(string, sizeof(string), "{F81414}AdmWarning:{FFFFFF} %s has respawned player %s !", PlayerData[playerid][Name], PlayerData[id][Name]);
ABroadCast(COLOR_WHITE,string,1);
return 1;
}
PHP код:
format(string, sizeof(string), "{F81414}AdmWarning:{FFFFFF} %s has respawned player %s !", PlayerData[playerid][Name], PlayerData[id][Name]);
ABroadCast(COLOR_WHITE,string,1);
return 1;