19.09.2012, 03:21
pawn Код:
if(PlayerTotalKills[killerid] == 1)
{
PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351113.mp3");
format(string, sizeof(string), "~N~~N~~N~~N~~r~%s ~w~Just Drew ~R~FIRST BLOOD", Name);
GameTextForAll(string, 6000,3);
SendClientMessage(killerid, C_LBLUE, "You get $%i and +%i score!", money1, score1);
GivePlayerMoney(playerid, money1);
GivePlayerScore(playerid, score1);
return 1;
}
pawn Код:
//----------------------------------Money---------------------------------------
#define money1 1000 //If Player First Kill Money Reward
#define money2 1200 //If Player Second Kill Money Reward
#define money3 1400 //If Player Third Kill Money Reward
#define money4 1600 //If Player Fourth Kill Money Reward
#define money5 1800 //If Player Fifth Kill Money Reward
#define money6 2000 //If Player sixth Kill Money Reward
#define money7 2200 //If Player Seventh Kill Money Reward
#define money8 2400 //If Player Eight Kill Money Reward
#define money9 2600 //If Player nine Kill Money Reward
#define money10 2800 //If Player ten Kill Money Reward
#define money11 3000 //If Player eleven Kill Money Reward
#define money12 3200 //If Player twelve Kill Money Reward
#define money13 3400 //If Player thirteen Kill Money Reward
#define money14 3600 //If Player fourtheen Kill Money Reward
#define money15 3800 //If Player fiftheen Kill Money Reward
#define money16 4000 //If Player Sixtheen Kill Money Reward
#define money17 4500 //If Player Seventeen Kill Money Reward
#define money18 5000 //If Player Eighteen Kill Money Reward
#define money19 7500 //If Player Nineteen Kill Money Reward
#define money20 10000 //If Player Twenty Up Kill Money Reward
//---------------------------------Scores---------------------------------------
#define score1 1 //If Player First Kill Score Reward
#define score2 1 //If Player Second Kill Score Reward
#define score3 1 //If Player Third Kill Score Reward
#define score4 1 //If Player Fourth Kill Score Reward
#define score5 1 //If Player Fifth Kill Score Reward
#define score6 1 //If Player Six Kill Score Reward
#define score7 1 //If Player Seven Kill Score Reward
#define score8 1 //If Player eight Kill Score Reward
#define score9 1 //If Player Nine Kill Score Reward
#define score10 1 //If Player ten Kill Score Reward
#define score11 1 //If Player eleven Kill Score Reward
#define score12 1 //If Player twelve Kill Score Reward
#define score13 1 //If Player thirteen Kill Score Reward
#define score14 1 //If Player fourtheen Kill Score Reward
#define score15 1 //If Player fiftheen Kill Score Reward
#define score16 1 //If Player Sixtheen Kill Score Reward
#define score17 1 //If Player Seventeen Kill Score Reward
#define score18 1 //If Player Eighteen Kill Score Reward
#define score19 1 //If Player Nineteen Kill Score Reward
#define score20 1 //If Player Twenty Up Kill Score Reward
pawn Код:
C:\Users\carlo\Downloads\ks (1).pwn(100) : warning 202: number of arguments does not match definition
C:\Users\carlo\Downloads\ks (1).pwn(100) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
pawn Код:
SendClientMessage(killerid, C_LBLUE, "You get $%i and +%i score!", money1, score1);