Hali!
Vanez a halottos cuc amit megcsináltam úgy hogy a csávó meghal az object felé kiírja hogy \"((Halott)) De nem megy itt a code:
/* ==================== [ Holtest Rendszer ] ==================== */
/* ============================================================== */
/* ======================= [ Készítette ] ======================= */
/* ============================================================== */
/* =================== [ Amf | SampForum.hu ] =================== */
/* ============================================================== */
/* ================== [ !!! NE TÖRÖLD KI !!! ] ================== */
/* ============================================================== */
#include <a_samp>
#include <foreach>
#include <streamer>
#include <zcmd>
#define PIROS 0xFF0000AA
new Gyilkos[MAX_PLAYERS], Holtest[MAX_PLAYERS], Object[MAX_PLAYERS];
new Float:Yh[MAX_PLAYERS], Float:Xh[MAX_PLAYERS], Float:Zh[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
DestroyDynamicObject(Object [playerid]);
GetPlayerPos(playerid, Yh[playerid], Xh[playerid], Zh[playerid]);
Create3DTextLabel( \"{ff0000}((Halott))\", 0xFF0000AA, Yh[playerid], Xh[playerid], Zh[playerid], 0, 90, 274);
Object[playerid] = CreateDynamicObject(3092, Yh[playerid], Xh[playerid], Zh[playerid], 0, 90, 274);
Gyilkos[playerid] = killerid;
Holtest[playerid] = playerid;
}
CMD:azonosit(playerid, params[]) //Csak természetes halálnál írja ki a gyilkost is!Ha parancsal ölöd meg, akkor nem!//
{
if(IsPlayerAdmin(playerid))
{
foreach (Player, i)
{
if(IsPlayerInRangeOfPoint(playerid, 3, Yh, Xh, Zh))
{
new name[128];
new name2[128];
new string[100];
GetPlayerName(Gyilkos, name, sizeof(name));
GetPlayerName(Holtest, name2, sizeof(name2));
format(string, sizeof(string),\"Holtest: %s Megölte: %s\",name2, name);
SendClientMessage(playerid, PIROS, string);
DestroyDynamicObject(Object [playerid]);
}
else
{
SendClientMessage(playerid, PIROS, \"Nincs a közeledben holtest!\");
}
}
}
else
{
SendClientMessage(playerid, PIROS, \"Nem vagy Admin!\");
}
return 1;
}
ahova beírtam:
public OnPlayerDeath(playerid, killerid, reason)
{
DestroyDynamicObject(Object [playerid]);
GetPlayerPos(playerid, Yh[playerid], Xh[playerid], Zh[playerid]);
Create3DTextLabel( \"{ff0000}((Halott))\", 0xFF0000AA, Yh[playerid], Xh[playerid], Zh[playerid], 0, 90, 274);
Object[playerid] = CreateDynamicObject(3092, Yh[playerid], Xh[playerid], Zh[playerid], 0, 90, 274);
Gyilkos[playerid] = killerid;
Holtest[playerid] = playerid;
}
Mi a gond?
amit beletettem
Create3DTextLabel( \"{ff0000}((Halott))\", 0xFF0000AA, Yh[playerid], Xh[playerid], Zh[playerid], 0, 90, 274);