What wrong?
#1

All the skins got the messages and 3 differents paycheck, i want just the skins who are writed se a message

pawn Код:
public OnPlayerPayDay(playerid)
{
    if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288 ||GetPlayerSkin(playerid) == 278 || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 279 || GetPlayerSkin(playerid) == 277 || GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 276 || GetPlayerSkin(playerid) == 50 || GetPlayerSkin(playerid) == 142 || GetPlayerSkin(playerid) == 160)
    SendClientMessageToAll(COLOR_GREY,"-------------------------------------------------------------------------------------------------");
    SendClientMessageToAll(COLOR_LIGHTGREEN,"BCBA PAYCHECK (Bone County Bank Agency)");
    SendClientMessageToAll(COLOR_GREY,"Sub-Total: 1600 $       ");
    SendClientMessageToAll(COLOR_GREY,"Taxes: -256 $           ");
    SendClientMessageToAll(COLOR_GREY,"Total: 1344 $           ");
    SendClientMessageToAll(COLOR_GREY,"-------------------------------------------------------------------------------------------------");
    GivePlayerMoney(playerid, 1344);
    return 1;
}

public OnPlayerPayDay3(playerid)
{
    if(GetPlayerSkin(playerid) == 27)
    SendClientMessageToAll(COLOR_GREY,"-------------------------------------------------------------------------------------------------");
    SendClientMessageToAll(COLOR_LIGHTGREEN,"BCBA PAYCHECK (Bone County Bank Agency)");
    SendClientMessageToAll(COLOR_GREY,"Sub-Total: 1600 $       ");
    SendClientMessageToAll(COLOR_GREY,"Taxes: -256 $           ");
    SendClientMessageToAll(COLOR_GREY,"Total: 1344 $           ");
    SendClientMessageToAll(COLOR_GREY,"-------------------------------------------------------------------------------------------------");
    GivePlayerMoney(playerid, 1344);
    return 1;
}

public OnPlayerPayDay2(playerid)
{
    if(GetPlayerSkin(playerid) == 170 || GetPlayerSkin(playerid) == 183 || GetPlayerSkin(playerid) == 184 || GetPlayerSkin(playerid) == 106 || GetPlayerSkin(playerid) == 226 ||GetPlayerSkin(playerid) == 235 || GetPlayerSkin(playerid) == 240 || GetPlayerSkin(playerid) == 250 || GetPlayerSkin(playerid) == 69 || GetPlayerSkin(playerid) == 60 || GetPlayerSkin(playerid) == 233 || GetPlayerSkin(playerid) == 55 || GetPlayerSkin(playerid) == 56 || GetPlayerSkin(playerid) == 30)
    SendClientMessageToAll(COLOR_GREY,"-------------------------------------------------------------------------------------------------");
    SendClientMessageToAll(COLOR_LIGHTGREEN,"BCBA WELFARE (Bone County Bank Agency)");
    SendClientMessageToAll(COLOR_GREY,"Sub-Total: 600 $       ");
    SendClientMessageToAll(COLOR_GREY,"Taxes: 56 $           ");
    SendClientMessageToAll(COLOR_GREY,"Total: 544 $           ");
    SendClientMessageToAll(COLOR_GREY,"-------------------------------------------------------------------------------------------------");
    GivePlayerMoney(playerid, 544);
    return 1;
}
Reply
#2

pawn Код:
public OnPlayerPayDay(playerid)
{
    if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288 ||GetPlayerSkin(playerid) == 278 || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 279 || GetPlayerSkin(playerid) == 277 || GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 276 || GetPlayerSkin(playerid) == 50 || GetPlayerSkin(playerid) == 142 || GetPlayerSkin(playerid) == 160){
    SendClientMessageToAll(COLOR_GREY,"-------------------------------------------------------------------------------------------------");
    SendClientMessageToAll(COLOR_LIGHTGREEN,"BCBA PAYCHECK (Bone County Bank Agency)");
    SendClientMessageToAll(COLOR_GREY,"Sub-Total: 1600 $       ");
    SendClientMessageToAll(COLOR_GREY,"Taxes: -256 $           ");
    SendClientMessageToAll(COLOR_GREY,"Total: 1344 $           ");
    SendClientMessageToAll(COLOR_GREY,"-------------------------------------------------------------------------------------------------");
    GivePlayerMoney(playerid, 1344);}
    return 1;
}

public OnPlayerPayDay3(playerid)
{
    if(GetPlayerSkin(playerid) == 27){
    SendClientMessageToAll(COLOR_GREY,"-------------------------------------------------------------------------------------------------");
    SendClientMessageToAll(COLOR_LIGHTGREEN,"BCBA PAYCHECK (Bone County Bank Agency)");
    SendClientMessageToAll(COLOR_GREY,"Sub-Total: 1600 $       ");
    SendClientMessageToAll(COLOR_GREY,"Taxes: -256 $           ");
    SendClientMessageToAll(COLOR_GREY,"Total: 1344 $           ");
    SendClientMessageToAll(COLOR_GREY,"-------------------------------------------------------------------------------------------------");
    GivePlayerMoney(playerid, 1344);}
    return 1;
}

public OnPlayerPayDay2(playerid)
{
    if(GetPlayerSkin(playerid) == 170 || GetPlayerSkin(playerid) == 183 || GetPlayerSkin(playerid) == 184 || GetPlayerSkin(playerid) == 106 || GetPlayerSkin(playerid) == 226 ||GetPlayerSkin(playerid) == 235 || GetPlayerSkin(playerid) == 240 || GetPlayerSkin(playerid) == 250 || GetPlayerSkin(playerid) == 69 || GetPlayerSkin(playerid) == 60 || GetPlayerSkin(playerid) == 233 || GetPlayerSkin(playerid) == 55 || GetPlayerSkin(playerid) == 56 || GetPlayerSkin(playerid) == 30){
    SendClientMessageToAll(COLOR_GREY,"-------------------------------------------------------------------------------------------------");
    SendClientMessageToAll(COLOR_LIGHTGREEN,"BCBA WELFARE (Bone County Bank Agency)");
    SendClientMessageToAll(COLOR_GREY,"Sub-Total: 600 $       ");
    SendClientMessageToAll(COLOR_GREY,"Taxes: 56 $           ");
    SendClientMessageToAll(COLOR_GREY,"Total: 544 $           ");
    SendClientMessageToAll(COLOR_GREY,"-------------------------------------------------------------------------------------------------");
    GivePlayerMoney(playerid, 544);}
    return 1;
}
Reply
#3

tHANK YOU!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)