05.12.2012, 18:54
Fis isso ai do PlayMoney2
Ficou assim
e o OnPlayerShootPlayer
Ficou assim
Код:
C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(2217) : error 017: undefined symbol "GiveplayermoneyEx" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(2827) : error 017: undefined symbol "Getplayermoney2Ex" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(3202) : error 017: undefined symbol "Getplayermoney2" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(3465) : error 017: undefined symbol "GiveplayermoneyEx" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(4137) : error 017: undefined symbol "Resetplayermoney2Ex" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(5385) : error 017: undefined symbol "GiveplayermoneyEx" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(5457) : error 017: undefined symbol "Getplayermoney2Ex" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(5477) : error 017: undefined symbol "GiveplayermoneyEx" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(5505) : error 017: undefined symbol "GiveplayermoneyEx" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(5967) : error 017: undefined symbol "GiveplayermoneyEx" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(6038) : error 017: undefined symbol "Getplayermoney2Ex" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(6042) : error 017: undefined symbol "Getplayermoney2Ex" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(6598) : error 017: undefined symbol "GiveplayermoneyEx" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(6682) : error 017: undefined symbol "Getplayermoney2Ex" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(6686) : error 017: undefined symbol "Getplayermoney2Ex" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(6695) : error 017: undefined symbol "Getplayermoney2Ex" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(6700) : error 017: undefined symbol "Getplayermoney2Ex" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(7409) : error 017: undefined symbol "Resetplayermoney2Ex" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(7410) : error 017: undefined symbol "Giveplayermoney" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(7900) : error 017: undefined symbol "Getplayermoney2Ex" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(7906) : error 017: undefined symbol "GiveplayermoneyEx" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(8207) : error 017: undefined symbol "Getplayermoney2Ex" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(10598) : error 017: undefined symbol "Getplayermoney2Ex" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(10604) : error 017: undefined symbol "GiveplayermoneyEx" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(10672) : error 017: undefined symbol "GiveplayermoneyEx" C:\Users\Casa Rodrigues\Desktop\files_20121204114001\gamemodes\BNL.pwn(10678) : error 017: undefined symbol "GiveplayermoneyEx"
Код:
ublic OnPlayerShootPlayer(Shooter,Target,Float,HealthLost,Float,ArmourLost) { new Float:health, Float:armour; GetPlayerHealth(Target,health); GetPlayerArmour(Target,armour); if(ArmourLost > 0.0) SetPlayerArmour(Target,floatadd(armour,ArmourLost)); if(HealthLost > 0.0) SetPlayerHealth(Target,floatadd(health,HealthLost)); new Damage; switch(GetPlayerWeapon(Shooter)) { case 24: Damage = DEAGLEDANO; case 31: Damage = M4DANO; case 28: Damage = SMGDANO; case 29: Damage = MP5DANO; case 0: Damage = SOCODANO; case 22: Damage = NOVEDANO; case 23: Damage = SILENCEDDANO; case 5,3,6,7,2: Damage = 1; case 4: Damage = FACADANO; case 25: Damage = SHOTGUNDANO; case 26: Damage = SAWNDANO; case 30: Damage = AK47DANO; case 33,34: Damage = COUNTRYDANO; } armour = armour - Damage; if(armour < 0.0) { health += armour; if(health <= 0.0) { health = 0.0; } armour = 0.0; } SetPlayerHealth(Target, health); SetPlayerArmour(Target, armour); return 1; }