[HELP]how to.. -
i need help..i want to make some jobs and i want to make new "symbol" as it said in pawno and i want when they are worker in job they will earn money for example per 5 minutes..
and i need to make a "symbol" and then use it so if they are in any job they will earn money
Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
new string[256];
new Menu:Current = GetPlayerMenu(playerid);
if (Current == menu1 ) {
switch(row) {
case 0:{
new pname[MAX_PLAYER_NAME];
new zamestnany[1]; //they are in job
povolanie1 = CreatePickup(1239,2,11,11,3);
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[!] Hrac %s se pripojil k mafii.", pname);
SendClientMessageToAll(COLOR_GREEN, string);
printf(string);
ResetPlayerWeapons(playerid);
iPlayerRole[playerid] = 1;
SetPlayerSkin(playerid, 29);
SetPlayerColor(playerid,COLOR_GREEN);
SetPlayerPos(playerid,10,12,3);
GivePlayerWeapon(playerid, 26, 5000);
GivePlayerWeapon(playerid, 31, 5000);
GivePlayerWeapon(playerid, 24, 5000);
povolanie1 = CreatePickup(1239,2,11,11,3);
}
}
}
return 0;
}
forward vyplata();
public vyplata()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if //no idea how to do it :D
if(IsPlayerConnected(i)){
GivePlayerMoney(i, 15000);
}
}
SendClientMessageToAll(COLOR_GREEN,"Obdrћal si vэplatu 1500$");
return 1;
}