public OnPlayerDeath(playerid, killerid, reason){KillingSpree[killerid] ++;KillingSpree[playerid] = 0;TextDrawHideForPlayer(playerid,txtTimeDisp);SetPlayerScore(killerid,5);SendDeathMessage(killerid, playerid, reason);if(KillingSpree[killerid] == 3){new string[200];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(string,200,\"%s jutalmat kap a 3 szoros ölésért halál nélkül Jutalma:5000$ és 5 Score\",name);SendClientMessageToAll(COLOR_ULTRARED,string);SetPlayerScore(playerid,5);GivePlayerMoney(playerid,5000);}if(KillingSpree[killerid] == 6){new string[200];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(string,200,\"%s halhatatlan !! Ezért jutalmat kap: 10000$ 10 Score\",name);SendClientMessageToAll(COLOR_ULTRARED,string);SetPlayerScore(playerid,10);GivePlayerMoney(playerid,10000);}if(KillingSpree[killerid] == 9){new string[200];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(string,200,\"%s vérszomjas !! Ezért jutalmat kap: 15000$ 15 Score\",name);SendClientMessageToAll(COLOR_ULTRARED,string);SetPlayerScore(playerid,15);GivePlayerMoney(playerid,15000);}if(KillingSpree[killerid] == 12){new string[200];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(string,200,\"%s isten !! Ezért jutalmat kap: 20000$ 20 Score\",name);SendClientMessageToAll(COLOR_ULTRARED,string);SetPlayerScore(playerid,20);GivePlayerMoney(playerid,20000);}return 1;}
public OnPlayerDeath(playerid, killerid, reason){KillingSpree[killerid] ++;KillingSpree[playerid] = 0;TextDrawHideForPlayer(playerid,txtTimeDisp);SetPlayerScore(killerid,5);SendDeathMessage(killerid, playerid, reason);if(KillingSpree[killerid] == 3){new string[200];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(string,200,\"%s jutalmat kap a 3 szoros ölésért halál nélkül Jutalma:5000$ és 5 Score\",name);SendClientMessageToAll(COLOR_ULTRARED,string);SetPlayerScore(playerid,5);GivePlayerMoney(playerid,5000);}if(KillingSpree[killerid] == 6){new string[200];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(string,200,\"%s halhatatlan !! Ezért jutalmat kap: 10000$ 10 Score\",name);SendClientMessageToAll(COLOR_ULTRARED,string);SetPlayerScore(playerid,10);GivePlayerMoney(playerid,10000);}if(KillingSpree[killerid] == 9){new string[200];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(string,200,\"%s vérszomjas !! Ezért jutalmat kap: 15000$ 15 Score\",name);SendClientMessageToAll(COLOR_ULTRARED,string);SetPlayerScore(playerid,15);GivePlayerMoney(playerid,15000);}if(KillingSpree[killerid] == 12){new string[200];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(string,200,\"%s isten !! Ezért jutalmat kap: 20000$ 20 Score\",name);SendClientMessageToAll(COLOR_ULTRARED,string);SetPlayerScore(playerid,20);GivePlayerMoney(playerid,20000);}return 1;} Javítom magam akkor esek csak le ha dmben ölnek meg
public OnPlayerSpawn(playerid){switch(dmben[playerid]){case 0:{new rand = random(sizeof(Shipdm));SetPlayerPos(playerid,Shipdm[rand][0],Shipdm[rand][1],Shipdm[rand][2]);SetPlayerFacingAngle(playerid,90.0); // Játékos írányba állítása; elforgatásResetPlayerWeapons(playerid);GivePlayerWeapon(playerid,4,1);GivePlayerWeapon(playerid,24,55555);GivePlayerWeapon(playerid,25,55555);GivePlayerWeapon(playerid,31,200);GivePlayerWeapon(playerid,34,55555);}case 1:{new rand2 = random(sizeof(m4dm));SetPlayerPos(playerid,m4dm[rand2][0],m4dm[rand2][1],m4dm[rand2][2]);ResetPlayerWeapons(playerid);SetPlayerFacingAngle(playerid,90.0);GivePlayerWeapon(playerid,31,10000);}case 2:{new rand3 = random(sizeof(minidm));SetPlayerPos(playerid,minidm[rand3][0],minidm[rand3][1],minidm[rand3][2]);ResetPlayerWeapons(playerid);GivePlayerWeapon(playerid,38,99999);dmben[playerid]= 1;SetPlayerFacingAngle(playerid,90.0);}default: // Alap spawn funkciók. Amikor a játékos NINCS DM-BEN ÉS ÚGY SPAWNOL{TextDrawShowForPlayer(playerid,txtTimeDisp);gettime(hour, minute);SetPlayerTime(playerid,hour,minute);new randszin = random(sizeof(szinek));SetPlayerColor(playerid, szinek[randszin]);SetPlayerPos(playerid,-330.3562,1529.4213,75.3594);SetPlayerInterior(playerid,0);SetPlayerHealth(playerid,100);SetPlayerArmour(playerid,100);TextDrawShowForPlayer(playerid,DW);SetPlayerVirtualWorld(playerid,0);GivePlayerMoney(playerid,100);GivePlayerWeapon(playerid,1,1);}}return 1;}new Float:Shipdm[4][0] ={{-2472.7549,1549.2173,33.2273},{-2437.9202,1561.8243,17.3358},{-2377.1072,1548.6382,2.1172},{-2316.6765,1541.7928,18.7734}};new Float:m4dm[5][0] ={{210.7491,147.1401,1003.0234},{189.1708,158.3184,1003.0234},{223.6001,186.7655,1003.0313},{253.5943,189.6686,1008.1719},{297.5291,186.1748,1007.1719}};new Float:minidm[6][] ={{2612.7781,2721.6843,36.5386},{2595.6309,2768.7861,23.8222},{2640.8472,2775.3394,23.8222},{2650.5364,2807.3479,36.3222},{2577.2959,2826.3767,27.8203},{2578.8538,2827.1208,10.8203}};
public OnPlayerDeath(playerid, killerid, reason){KillingSpree[killerid] ++;KillingSpree[playerid] = 0;TextDrawHideForPlayer(playerid,txtTimeDisp);SetPlayerScore(killerid,5);SendDeathMessage(killerid, playerid, reason);if(KillingSpree[killerid] == 3){new string[200];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(string,200,\"%s jutalmat kap a 3 szoros ölésért halál nélkül Jutalma:5000$ és 5 Score\",name);SendClientMessageToAll(COLOR_ULTRARED,string);SetPlayerScore(playerid,5);GivePlayerMoney(playerid,5000);}if(KillingSpree[killerid] == 6){new string[200];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(string,200,\"%s halhatatlan !! Ezért jutalmat kap: 10000$ 10 Score\",name);SendClientMessageToAll(COLOR_ULTRARED,string);SetPlayerScore(playerid,10);GivePlayerMoney(playerid,10000);}if(KillingSpree[killerid] == 9){new string[200];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(string,200,\"%s vérszomjas !! Ezért jutalmat kap: 15000$ 15 Score\",name);SendClientMessageToAll(COLOR_ULTRARED,string);SetPlayerScore(playerid,15);GivePlayerMoney(playerid,15000);}if(KillingSpree[killerid] == 12){new string[200];new name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,sizeof(name));format(string,200,\"%s isten !! Ezért jutalmat kap: 20000$ 20 Score\",name);SendClientMessageToAll(COLOR_ULTRARED,string);SetPlayerScore(playerid,20);GivePlayerMoney(playerid,20000);}return 1;} Javítom magam akkor esek csak le ha dmben ölnek meg csak megemlítem, hogy itt mindegy hány embert öl mert mindig 5 pontja lesz. [/quote]Nem ezt kérddeztem. Ha nem tudod rá a megoldás akkor inkább meg se szólalj kössz-.-\"
public OnPlayerSpawn(playerid){ SetPlayerPos(playerid, kordináta);}
Nem igaz, forditva kell.. Az OnPlayerDeath alÀ ird be SetPlayerPos(playerid, kordinata ami az onplayersapwn alatt van ugyan az!);Az onplayerspawn alatt is legyen es az OnPlayerDeath alatt is legyen ugyan az a SetPlayerPos es menni fog!
OnPlayerDeath
OnPlayerSpawn
OnPlayerDeath(playerid, reason){ SetPlayerPos(playerid, kordináta ami az onplayerspawn alattvan); return 1;}
Jah tom. Zárok...mert megoldva