Szerző Téma: Wanted  (Megtekintve 472 alkalommal)

Wanted
« Dátum: 2013. április 20. - 18:27:50 »
0 Show voters
helló lenne egy kis gond az a baj hogy nem tudom mér nem veszi le a pénzt és nem tudom mér nem írja ki sendclientmessage
 
      new oldlevel;
    new newlevel;
         oldlevel = GetPlayerWantedLevel(playerid);
       newlevel = oldlevel + 1;
        SetPlayerWantedLevel(playerid, newlevel);
        SetPlayerWantedLevel(playerid, 0);
       
    if(GetPlayerWantedLevel(playerid) == 1)   {
    RewardPlayer(playerid, -1000, 0);
       SetPlayerWantedLevel(playerid, 0);
       SendClientMessage(playerid, 0xFFFFFFFF,\"You killed a criminal and earned 1000$!\");}
        else if(GetPlayerWantedLevel(playerid) == 2)   {
        RewardPlayer(playerid, -2000, 0);
       SetPlayerWantedLevel(playerid, 0);
       SendClientMessage(playerid, 0xFFFFFFFF,\"You killed a criminal and earned 2000$!\");}
        else if(GetPlayerWantedLevel(playerid) == 3)   {
        RewardPlayer(playerid, -3000, 0);
       SetPlayerWantedLevel(playerid, 0);
       SendClientMessage(pickupid, 0xFFFFFFFF,\"You killed a criminal and earned 3000$!\");}
        else if(GetPlayerWantedLevel(playerid) == 4)   {
        RewardPlayer(playerid, -4000, 0);
          SetPlayerWantedLevel(playerid, 0);
    SendClientMessage(playerid, 0xFFFFFFFF,\"You killed a criminal and earned 4000$!\");}
        else if(GetPlayerWantedLevel(playerid) == 5)   {
        RewardPlayer(playerid, -5000, 0);
         SetPlayerWantedLevel(playerid, 0);
          SendClientMessage(playerid, 0xFFFFFFFF,\"You killed a criminal and earned 5000$!\");}
        else if(GetPlayerWantedLevel(playerid) == 6)   {
        RewardPlayer(playerid, -6000, 0);
         SetPlayerWantedLevel(playerid, 0);
    SendClientMessage(playerid, 0xFFFFFFFF,\"You killed a criminal and earned 6000$!\");}

 
kösz elõre is helló
« Utoljára szerkesztve: 2013. április 20. - 18:29:21 írta Gyuri_Boyka »

Nem elérhető DrAkE

  • 2078
    • Profil megtekintése
Wanted
« Válasz #1 Dátum: 2013. április 20. - 20:50:29 »
0 Show voters
Találd meg a bûnöst:
 

SetPlayerWantedLevel(playerid, newlevel);
SetPlayerWantedLevel(playerid, 0);

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal