Guten Abend Community,
ich wollte euch mal fragen:
Kann man diesen Code:
forward bsn1(playerid);
forward bsn2(playerid);forward bsn3(playerid);
forward bsn4(playerid);
forward bsn5(playerid);
forward bsn6(playerid);
forward bsn7(playerid);
forward bsn8(playerid);
forward bsn9(playerid);
public bsn1(playerid)
{
SendClientMessage(playerid,0x0037FFFF,"Guten Appitet");
SetPlayerHealth(playerid,10);
GivePlayerMoney(playerid,-10);
return 1;
}
public bsn2(playerid)
{
SendClientMessage(playerid,0x0037FFFF,"Guten Appitet");
SetPlayerHealth(playerid,10);
GivePlayerMoney(playerid,-10);
return 1;
}
public bsn3(playerid)
{
SendClientMessage(playerid,0x0037FFFF,"Guten Appitet");
SetPlayerHealth(playerid,15);
GivePlayerMoney(playerid,-15);
return 1;
}
public bsn4(playerid)
{
SendClientMessage(playerid,0x0037FFFF,"Guten Appitet");
SetPlayerHealth(playerid,5);
GivePlayerMoney(playerid,-5);
return 1;
}
public bsn5(playerid)
{
SendClientMessage(playerid,0x0037FFFF,"Guten Appitet");
SetPlayerHealth(playerid,25);
GivePlayerMoney(playerid,-50);
return 1;
}
public bsn6(playerid)
{
SendClientMessage(playerid,0x0037FFFF,"Guten Appitet");
SetPlayerHealth(playerid,30);
GivePlayerMoney(playerid,-60);
return 1;
}
public bsn7(playerid)
{
SendClientMessage(playerid,0x0037FFFF,"Guten Appitet");
SetPlayerHealth(playerid,40);
GivePlayerMoney(playerid,-70);
return 1;
}
public bsn8(playerid)
{
SendClientMessage(playerid,0x0037FFFF,"Guten Appitet");
SetPlayerHealth(playerid,5);
GivePlayerMoney(playerid,-2);
return 1;
}
public bsn9(playerid)
{
SendClientMessage(playerid,0x0037FFFF,"Guten Appitet");
SetPlayerHealth(playerid,50);
GivePlayerMoney(playerid,-100);
return 1;
}
irgendwie resourcend freundlicher scripten ?