public OnPlayerDeath(playerid, killerid, reason){new KillerMSG[170],KilledMSG[170];new KillerName[MAX_PLAYER_NAME], KilledName[MAX_PLAYER_NAME];new halallok[256];GetPlayerName(killerid, KillerName, sizeof(KillerName));GetPlayerName(playerid, KilledName, sizeof(KilledName));format(KillerMSG,sizeof(KillerMSG),\"Megölted %s-t. Kapsz egy pontot.\",KilledName);format(KilledMSG, sizeof(KilledMSG),\"%s megölt téged. Kórházba kerültél, a költségek levonva.\",KillerName);/*-------------------------------------------*/ Informacio[playerid][halalok]++; format(halallok, sizeof(halallok),\"%d\",Informacio[playerid][halalok]); TextDrawSetString(Textdraw3, halallok);/*-----------------------*/if(playerid != killerid){ if(Informacio[playerid][banda] != Informacio[killerid][banda]) { SendClientMessage(killerid, PUB, KillerMSG); SendClientMessage(playerid, RED, KilledMSG); SetPlayerScore(killerid, GetPlayerScore(killerid)+1); Informacio[killerid][olesek]++; }else{ SendClientMessage(killerid, RED, \"Megölted a csapattársadat, ami tilos. Levonásra került 500$ és 1 pont.\"); SetPlayerScore(killerid,GetPlayerScore(killerid)-1);}}else SendClientMessage(playerid, PUB, \"Mivel magadat ölted meg így semmit sem kapsz.\");return 1;}
public OnPlayerSpawn(playerid){return 1;}
OnPlayerDeath: public OnPlayerDeath(playerid, killerid, reason){new KillerMSG[170],KilledMSG[170];new KillerName[MAX_PLAYER_NAME], KilledName[MAX_PLAYER_NAME];new halallok[256];GetPlayerName(killerid, KillerName, sizeof(KillerName));GetPlayerName(playerid, KilledName, sizeof(KilledName));format(KillerMSG,sizeof(KillerMSG),\"Megölted %s-t. Kapsz egy pontot.\",KilledName);format(KilledMSG, sizeof(KilledMSG),\"%s megölt téged. Kórházba kerültél, a költségek levonva.\",KillerName);/*-------------------------------------------*/ Informacio[playerid][halalok]++; format(halallok, sizeof(halallok),\"%d\",Informacio[playerid][halalok]); TextDrawSetString(Textdraw3, halallok);/*-----------------------*/if(playerid != killerid){ if(Informacio[playerid][banda] != Informacio[killerid][banda]) { SendClientMessage(killerid, PUB, KillerMSG); SendClientMessage(playerid, RED, KilledMSG); SetPlayerScore(killerid, GetPlayerScore(killerid)+1); Informacio[killerid][olesek]++; }else{ SendClientMessage(killerid, RED, \"Megölted a csapattársadat, ami tilos. Levonásra került 500$ és 1 pont.\"); SetPlayerScore(killerid,GetPlayerScore(killerid)-1);}}else SendClientMessage(playerid, PUB, \"Mivel magadat ölted meg így semmit sem kapsz.\");return 1;} OnPlayerSpawn: public OnPlayerSpawn(playerid){return 1;} E:Nem használok Filterscript-et.