12.01.2017, 10:54
(
Последний раз редактировалось AuhMaru; 16.04.2017 в 05:34.
)
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
SetPlayerScore(killerid, GetPlayerScore(killerid) +1);
GameTextForPlayer(killerid, "+1 Level!!!", 2000, 3);
}
return true;
}
PHP код:
CMD:setarscore(playerid, params[])
{
static id, score;
if(!IsPlayerAdmin(playerid))
return SendClientMessage(playerid, -1, "Vocк nгo estб logado na rcon!");
if(sscanf(params, "ud", id, score))
return SendClientMessage(playerid, -1, "Digite: /setarscore <id> <score>");
if(!IsPlayerConnected(id))
return SendClientMessage(playerid, -1, "Este ID й Invбlido!");
static nameid[MAX_PLAYER_NAME], str[65];
GetPlayerName(id, nameid, sizeof nameid);
SetPlayerScore(id, GetPlayerScore(id) +score);
format(str, sizeof str, "Vocк ganhou (%d) score do player %s", score, nameid);
SendClientMessage(id, -1, str);
return true;
}