226
mIRC/pawn Scripting / Re: Need a Pro Scripter
« on: March 03, 2011, 10:19:39 pm »
Dawood Just look over my gamemode and you will know who's good
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
enum Clans {
EAF,
HPK,
RAF,
};
new ClansInfo[kills][Clans];
new ClanKill[MAX_PLAYERS];
ClanKill[killerid]++;
new name[5]; GetPlayerName(killerid,name,sizeof(name));
if(!strcmp(name,"[EAF]"));
{
ClansInfo[kills][EAF]++;
}
else if(!strcmp(name,"[HPK]"));
{
ClansInfo[kills][HPK]++;
}
else if(!strcmp(name,"[RAF]"));
{
ClansInfo[kills][RAF]++;
}
new string[256]; format(string,sizeof(string),"EAF Kills: %d HPK Kills: %d RAF Kills: %d",ClansInfo[kills][EAF],ClansInfo[kills][HPK],ClansInfo[kills][RAF]);
SendClientMessage(playerid,color,string);
for(new i; i>=80; i<=85; i++) {
if(pickupid == i) {
// Things to happen
}
if((pickupid == 80) || (pickupid == 85))
{
SetPlayerHealth(playerid,55+10); // :D
}
else if(pickupid == 20)
{
SetPlayerScore(playerid,0); // :))
}
else if etc...
new i;
for(i>=20,i<=40,i++);
use if(pickupid == i) {
SetPlayerHealth(playerid,0);
}
new pizzas[MAX_PLAYERS];
forward SetPlayerMoneyLoss(playerid,ammount);
public SetPlayerMoneyLoss(playerid,ammount)
{
new cash; cash = GetPlayerMoney(playerid);
SetPlayerMoney(playerid,cash-ammount);
/*new string[256];
format(string,sizeof(string),"You lost $%d",ammount);
SendClientMessage(playerid,00000xFF,string);
*/
// To un-comment just delete the /* and */
return cash-ammount;
}
Made by me in 2 mins.forward SetPlayerMoneyAdds(playerid,ammount);
public SetPlayerMoneyAdds(playerid,ammount)
{
new cash; cash = GetPlayerMoney(playerid);
SetPlayerMoney(playerid,cash+ammount);
/*new string[256];
format(string,sizeof(string),"You gained $%d",ammount);
SendClientMessage(playerid,00000xFF,string);
*/
// To un-comment just delete the /* and */
return cash+ammount;
}
also made by me in a few minutes.Those can help you
#include <a_vcmp>
#include <core>
#include <float>
#pragma tabsize 0
#pragma tabsize 0
It helped me a lot.