Dont earn money
#1

I got this FS but i dont earn money ( this is sweeper job )

Code:
pawn Код:
#include <a_samp>
#define GivePlayerMoney
#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA

new SweepingJob[256];

public OnFilterScriptInit()
{
    AddStaticVehicle(574,1424.8956,-1844.7279,13.2739,359.7335,1,1); // Sweeper1
    AddStaticVehicle(574,1428.4050,-1844.6340,13.2739,0.7382,1,1); // Sweeper2
    AddStaticVehicle(574,1431.9050,-1844.6138,13.2739,1.4491,1,1); // Sweeper3
}
forward SweeperJobFinish(playerid);
public SweeperJobFinish(playerid)
{
    if(SweepingJob[playerid] == 0){ return 1; }

    GivePlayerMoney(playerid, 200);
    if(GetPlayerMoney(playerid) > 200)
    SendClientMessage(playerid,COLOR_YELLOW,"* You have earned 200$ for your job!");
    SweepingJob[playerid] = 0;

    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/sweeper", cmdtext, true, 10) == 0)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
        {
            SweepingJob[playerid] = 1;
            new name[MAX_PLAYER_NAME], string[48];
            GetPlayerName(playerid, name, sizeof(name));
            SendClientMessageToAll(COLOR_YELLOW, string);
            SendClientMessage(playerid,COLOR_YELLOW,"* Clean the street for 1 minute and recieve $200");
            SetTimerEx("SweeperJobFinish", 60000, false, "i", playerid);
            return 1;
        }
        SendClientMessage(playerid, COLOR_RED,"You have to be in a streetsweeper to start the job");
    }
    return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
     if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
     {
         SendClientMessage(playerid, COLOR_RED, "* You can start the sweepingjob by using /sweeper");
     }
     return 0;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(SweepingJob[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "* You have left your job, you won't be payed.");
        SweepingJob[playerid] = 0;
    }
}
Reply
#2

Hello,

Try this

pawn Код:
#include <a_samp>
#define MAX_PLAYERS 60
#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA

new SweepingJob[MAX_PLAYERS];

public OnFilterScriptInit()
{
    AddStaticVehicle(574,1424.8956,-1844.7279,13.2739,359.7335,1,1); // Sweeper1
    AddStaticVehicle(574,1428.4050,-1844.6340,13.2739,0.7382,1,1); // Sweeper2
    AddStaticVehicle(574,1431.9050,-1844.6138,13.2739,1.4491,1,1); // Sweeper3
}
forward SweeperJobFinish(playerid);
public SweeperJobFinish(playerid)
{
    if(SweepingJob[playerid] == 0){ return 1; }

    GivePlayerMoney(playerid, 200);
    if(GetPlayerMoney(playerid) > 200)
    SendClientMessage(playerid,COLOR_YELLOW,"* You have earned 200$ for your job!");
    SweepingJob[playerid] = 0;

    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/sweeper", cmdtext, true, 10) == 0)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
        {
            SweepingJob[playerid] = 1;
            new name[MAX_PLAYER_NAME], string[48];
            GetPlayerName(playerid, name, sizeof(name));
            SendClientMessageToAll(COLOR_YELLOW, string);
            SendClientMessage(playerid,COLOR_YELLOW,"* Clean the street for 1 minute and recieve $200");
            SetTimerEx("SweeperJobFinish", 60000, false, "i", playerid);
            return 1;
        }
        SendClientMessage(playerid, COLOR_RED,"You have to be in a streetsweeper to start the job");
    }
    return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
     if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
     {
         SendClientMessage(playerid, COLOR_RED, "* You can start the sweepingjob by using /sweeper");
     }
     return 0;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(SweepingJob[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "* You have left your job, you won't be payed.");
        SweepingJob[playerid] = 0;
    }
}
This should work.
Reply
#3

Quote:
Originally Posted by Riste
Посмотреть сообщение
Hello,

Try this

pawn Код:
#include <a_samp>
#define MAX_PLAYERS 60
#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA

new SweepingJob[MAX_PLAYERS];

public OnFilterScriptInit()
{
    AddStaticVehicle(574,1424.8956,-1844.7279,13.2739,359.7335,1,1); // Sweeper1
    AddStaticVehicle(574,1428.4050,-1844.6340,13.2739,0.7382,1,1); // Sweeper2
    AddStaticVehicle(574,1431.9050,-1844.6138,13.2739,1.4491,1,1); // Sweeper3
}
forward SweeperJobFinish(playerid);
public SweeperJobFinish(playerid)
{
    if(SweepingJob[playerid] == 0){ return 1; }

    GivePlayerMoney(playerid, 200);
    if(GetPlayerMoney(playerid) > 200)
    SendClientMessage(playerid,COLOR_YELLOW,"* You have earned 200$ for your job!");
    SweepingJob[playerid] = 0;

    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/sweeper", cmdtext, true, 10) == 0)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
        {
            SweepingJob[playerid] = 1;
            new name[MAX_PLAYER_NAME], string[48];
            GetPlayerName(playerid, name, sizeof(name));
            SendClientMessageToAll(COLOR_YELLOW, string);
            SendClientMessage(playerid,COLOR_YELLOW,"* Clean the street for 1 minute and recieve $200");
            SetTimerEx("SweeperJobFinish", 60000, false, "i", playerid);
            return 1;
        }
        SendClientMessage(playerid, COLOR_RED,"You have to be in a streetsweeper to start the job");
    }
    return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
     if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
     {
         SendClientMessage(playerid, COLOR_RED, "* You can start the sweepingjob by using /sweeper");
     }
     return 0;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(SweepingJob[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "* You have left your job, you won't be payed.");
        SweepingJob[playerid] = 0;
    }
}
This should work.
Dont work man
you can do something else for make it work?
Reply
#4

Use print function to see that the player have access with the function or not.

pawn Код:
#include <a_samp>
#define MAX_PLAYERS 60
#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA

new SweepingJob[MAX_PLAYERS];

public OnFilterScriptInit()
{
    AddStaticVehicle(574,1424.8956,-1844.7279,13.2739,359.7335,1,1); // Sweeper1
    AddStaticVehicle(574,1428.4050,-1844.6340,13.2739,0.7382,1,1); // Sweeper2
    AddStaticVehicle(574,1431.9050,-1844.6138,13.2739,1.4491,1,1); // Sweeper3
}
forward SweeperJobFinish(playerid);
public SweeperJobFinish(playerid)
{
    if(SweepingJob[playerid] == 0){ return 1; }

    GivePlayerMoney(playerid, 200);
    print("Player have access to the function.");
    if(GetPlayerMoney(playerid) > 200)
    SendClientMessage(playerid,COLOR_YELLOW,"* You have earned 200$ for your job!");
    SweepingJob[playerid] = 0;

    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/sweeper", cmdtext, true, 10) == 0)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
        {
            SweepingJob[playerid] = 1;
            new name[MAX_PLAYER_NAME], string[48];
            GetPlayerName(playerid, name, sizeof(name));
            SendClientMessageToAll(COLOR_YELLOW, string);
            SendClientMessage(playerid,COLOR_YELLOW,"* Clean the street for 1 minute and recieve $200");
            SetTimerEx("SweeperJobFinish", 60000, false, "i", playerid);
            return 1;
        }
        SendClientMessage(playerid, COLOR_RED,"You have to be in a streetsweeper to start the job");
    }
    return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
     if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
     {
         SendClientMessage(playerid, COLOR_RED, "* You can start the sweepingjob by using /sweeper");
     }
     return 0;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(SweepingJob[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "* You have left your job, you won't be payed.");
        SweepingJob[playerid] = 0;
    }
}
Reply
#5

Quote:
Originally Posted by Riste
Посмотреть сообщение
Use print function to see that the player have access with the function or not.

pawn Код:
#include <a_samp>
#define MAX_PLAYERS 60
#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA

new SweepingJob[MAX_PLAYERS];

public OnFilterScriptInit()
{
    AddStaticVehicle(574,1424.8956,-1844.7279,13.2739,359.7335,1,1); // Sweeper1
    AddStaticVehicle(574,1428.4050,-1844.6340,13.2739,0.7382,1,1); // Sweeper2
    AddStaticVehicle(574,1431.9050,-1844.6138,13.2739,1.4491,1,1); // Sweeper3
}
forward SweeperJobFinish(playerid);
public SweeperJobFinish(playerid)
{
    if(SweepingJob[playerid] == 0){ return 1; }

    GivePlayerMoney(playerid, 200);
    print("Player have access to the function.");
    if(GetPlayerMoney(playerid) > 200)
    SendClientMessage(playerid,COLOR_YELLOW,"* You have earned 200$ for your job!");
    SweepingJob[playerid] = 0;

    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/sweeper", cmdtext, true, 10) == 0)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
        {
            SweepingJob[playerid] = 1;
            new name[MAX_PLAYER_NAME], string[48];
            GetPlayerName(playerid, name, sizeof(name));
            SendClientMessageToAll(COLOR_YELLOW, string);
            SendClientMessage(playerid,COLOR_YELLOW,"* Clean the street for 1 minute and recieve $200");
            SetTimerEx("SweeperJobFinish", 60000, false, "i", playerid);
            return 1;
        }
        SendClientMessage(playerid, COLOR_RED,"You have to be in a streetsweeper to start the job");
    }
    return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
     if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
     {
         SendClientMessage(playerid, COLOR_RED, "* You can start the sweepingjob by using /sweeper");
     }
     return 0;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(SweepingJob[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "* You have left your job, you won't be payed.");
        SweepingJob[playerid] = 0;
    }
}
still dont work
Reply
#6

Quote:
Originally Posted by salev13
Посмотреть сообщение
still dont work
Can you show me server_log.txt file to see ?
Reply
#7

You're server might be running with server sided money. could you please post some code that has something to do with your money in your gamemode. something like
Код:
pInfo[playerid][pCash]
Reply
#8

Try THis!


PHP код:
#include <a_samp>
#define GC GivePlayerMoney
#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
new SweepingJob[256];
public 
OnFilterScriptInit()
{
    
AddStaticVehicle(574,1424.8956,-1844.7279,13.2739,359.7335,1,1); // Sweeper1
    
AddStaticVehicle(574,1428.4050,-1844.6340,13.2739,0.7382,1,1); // Sweeper2
    
AddStaticVehicle(574,1431.9050,-1844.6138,13.2739,1.4491,1,1); // Sweeper3
}
forward SweeperJobFinish(playerid);
public 
SweeperJobFinish(playerid)
{
    if(
SweepingJob[playerid] == 0){ return 1; }
    
GC(playerid200);
    if(
GetPlayerMoney(playerid) > 200)
    
SendClientMessage(playerid,COLOR_YELLOW,"* You have earned 200$ for your job!");
    
SweepingJob[playerid] = 0;
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/sweeper"cmdtexttrue10) == 0)
    {
        if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
        {
            
SweepingJob[playerid] = 1;
            new 
name[MAX_PLAYER_NAME], string[48];
            
GetPlayerName(playeridnamesizeof(name));
            
SendClientMessageToAll(COLOR_YELLOWstring);
            
SendClientMessage(playerid,COLOR_YELLOW,"* Clean the street for 1 minute and recieve $200");
            
SetTimerEx("SweeperJobFinish"60000false"i"playerid);
            return 
1;
        }
        
SendClientMessage(playeridCOLOR_RED,"You have to be in a streetsweeper to start the job");
    }
    return 
0;
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
     if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
     {
         
SendClientMessage(playeridCOLOR_RED"* You can start the sweepingjob by using /sweeper");
     }
     return 
0;
}
public 
OnPlayerExitVehicle(playeridvehicleid)
{
    if(
SweepingJob[playerid] == 1)
    {
        
SendClientMessage(playeridCOLOR_RED"* You have left your job, you won't be payed.");
        
SweepingJob[playerid] = 0;
    }

Reply
#9

Quote:
Originally Posted by danish007
Посмотреть сообщение
Try THis!


PHP код:
#include <a_samp>
#define GC GivePlayerMoney
#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
new SweepingJob[256];
public 
OnFilterScriptInit()
{
    
AddStaticVehicle(574,1424.8956,-1844.7279,13.2739,359.7335,1,1); // Sweeper1
    
AddStaticVehicle(574,1428.4050,-1844.6340,13.2739,0.7382,1,1); // Sweeper2
    
AddStaticVehicle(574,1431.9050,-1844.6138,13.2739,1.4491,1,1); // Sweeper3
}
forward SweeperJobFinish(playerid);
public 
SweeperJobFinish(playerid)
{
    if(
SweepingJob[playerid] == 0){ return 1; }
    
GC(playerid200);
    if(
GetPlayerMoney(playerid) > 200)
    
SendClientMessage(playerid,COLOR_YELLOW,"* You have earned 200$ for your job!");
    
SweepingJob[playerid] = 0;
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/sweeper"cmdtexttrue10) == 0)
    {
        if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
        {
            
SweepingJob[playerid] = 1;
            new 
name[MAX_PLAYER_NAME], string[48];
            
GetPlayerName(playeridnamesizeof(name));
            
SendClientMessageToAll(COLOR_YELLOWstring);
            
SendClientMessage(playerid,COLOR_YELLOW,"* Clean the street for 1 minute and recieve $200");
            
SetTimerEx("SweeperJobFinish"60000false"i"playerid);
            return 
1;
        }
        
SendClientMessage(playeridCOLOR_RED,"You have to be in a streetsweeper to start the job");
    }
    return 
0;
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
     if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
     {
         
SendClientMessage(playeridCOLOR_RED"* You can start the sweepingjob by using /sweeper");
     }
     return 
0;
}
public 
OnPlayerExitVehicle(playeridvehicleid)
{
    if(
SweepingJob[playerid] == 1)
    {
        
SendClientMessage(playeridCOLOR_RED"* You have left your job, you won't be payed.");
        
SweepingJob[playerid] = 0;
    }

Thats told me that i earned but i dont get the money

Quote:

Can you show me server_log.txt file to see ?

[phq]
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[19:36:11]
[19:36:11] Server Plugins
[19:36:11] --------------
[19:36:11] Loading plugin: whirlpool
[19:36:11]
[19:36:11] ==================
[19:36:11]
[19:36:11] Whirlpool loaded
[19:36:11]
[19:36:11] ==================
[19:36:11]
[19:36:11] Loaded.
[19:36:11] Loading plugin: Whirlpool
[19:36:11]
[19:36:11] ==================
[19:36:11]
[19:36:11] Whirlpool loaded
[19:36:11]
[19:36:11] ==================
[19:36:11]
[19:36:11] Loaded.
[19:36:11] Loading plugin: streamer
[19:36:11]

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[19:36:11] Loaded.
[19:36:11] Loading plugin: sscanf
[19:36:11]

[19:36:11] ===============================

[19:36:11] sscanf plugin loaded.

[19:36:11] © 2009 Alex "******" Cole

[19:36:11] 0.3d-R2 500 Players "dnee"

[19:36:11] ===============================

[19:36:11] Loaded.
[19:36:11] Loading plugin: nativechecker
[19:36:11] Loaded.
[19:36:11] Loading plugin: irc
[19:36:11]

*** IRC Plugin v1.4.3 by Incognito loaded ***

[19:36:11] Loaded.
[19:36:11] Loaded 6 plugins.

[19:36:11]
[19:36:11] Filterscripts
[19:36:11] ---------------
[19:36:11] Loading filterscript 'Pizzaboy.amx'...
[19:36:11] Loading filterscript 'Sweeper.amx'...
[19:36:11] Loaded 2 filterscripts.

[19:36:11]
[19:36:11]
[19:36:11]
[19:36:11] =======================================
[19:36:11] | |
[19:36:11] | YSI version 1.06.0002 |
[19:36:11] | By Alex "******" Cole |
[19:36:11] | |
[19:36:11] =======================================
[19:36:11]
[19:36:11]
[19:36:11]
[19:36:11] Static vehicles loaded.
[19:36:11] Static objects loaded.
[19:36:11] SAPD files loaded successfully.
[19:36:11] Government files loaded successfully.
[19:36:11] Hitman Agency files loaded successfully.
[19:36:11] News Agency files loaded successfully.
[19:36:11] Leone files loaded successfully.
[19:36:11] FBI files loaded successfully.
[19:36:11] LSEMS files loaded successfully.
[19:36:11] HSF files loaded successfully.
[19:36:11] Corleone files loaded successfully.
[19:36:11] The Ancelotti Family files loaded successfully.
[19:36:11] Special Weapons And Tactics files loaded successfully.
[19:36:11] San Andreas Task Force files loaded successfully.
[19:36:11] East Side Fellas files loaded successfully.
[19:36:11] Garages loaded successfully.
[19:36:11] Families loaded successfully.
[19:36:11] Points loaded successfully.
[19:36:11] Businesses loaded successfully.
[19:36:11] Houses loaded successfully.
[19:36:11] Doors loaded successfully.
[19:36:11] Gates loaded successfully.
[19:36:11] Mapicons loaded successfully.
[19:36:11] Arrest Point loaded successfully.
[19:36:11] Drugs loaded successfully.
[19:36:11] Products loaded successfully.
[19:36:11] Static pickups loaded.
[19:36:11] MOTDs loaded successfully.
[19:36:11] |-|-|-|-|-|-|-|-|-|-|-|-|-|
[19:36:11] |=United Kingdoms Roleplay=|
[19:36:11] |=Copyright © 2013 A:RP =|
[19:36:11] |-|-|-|-|-|-|-|-|-|-|-|-|-|
[19:36:11] Number of vehicle models: 40
[19:36:11]
[19:36:11] ==========================================
[19:36:11] | |
[19:36:11] | A new version (v3.09.0684) of YSI is |
[19:36:11] | available from: |
[19:36:11] | |
[19:36:11] | www.y-less.com/YSI/YSI_1.0.zip |
[19:36:11] | |
[19:36:11] | Changelog: |
[19:36:11] | |
[19:36:11] | 3.00.0000: |
[19:36:11] | |
[19:36:11] | YSI 3.0 released! Now includes the |
[19:36:11] | "y_text" library for better messages, |
[19:36:11] | and a reworked "y_classes" library. |
[19:36:11] | Largely documented here |
[19:36:11] | "http://forum.sa-mp.com/showthread.php |
[19:36:11] | ?t=321092". |
[19:36:11] | |
[19:36:11] | 3.01.0002: |
[19:36:11] | |
[19:36:11] | Small fixes to "y_text" and |
[19:36:11] | "y_classes". |
[19:36:11] | |
[19:36:11] | 3.09.0684: |
[19:36:11] | |
[19:36:11] | Reverted to old download location. |
[19:36:11] | Improved (and fixed) version checks; |
[19:36:11] | added y_bitmap, y_areas, y_races, |
[19:36:11] | y_zonenames, better documentation; |
[19:36:11] | MANY other bug fixes - see the github |
[19:36:11] | repository for more details: |
[19:36:11] | |
[19:36:11] ==========================================
[/phq]
Reply
#10

Tested. if still don't work? maybe a Problem in ur script....

Quote:

#include <a_samp>
#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA

new SweepingJob[256];

public OnFilterScriptInit()
{
AddStaticVehicle(574,1424.8956,-1844.7279,13.2739,359.7335,1,1); // Sweeper1
AddStaticVehicle(574,1428.4050,-1844.6340,13.2739,0.7382,1,1); // Sweeper2
AddStaticVehicle(574,1431.9050,-1844.6138,13.2739,1.4491,1,1); // Sweeper3
}
forward SweeperJobFinish(playerid);
public SweeperJobFinish(playerid)
{
if(SweepingJob[playerid] == 1)
{
GivePlayerMoney(playerid, 200);
if(GetPlayerMoney(playerid) > 200)
SendClientMessage(playerid,COLOR_YELLOW,"* You have earned 200$ for your job!");
SweepingJob[playerid] = 0;
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sweeper", cmdtext, true, 10) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
{
SweepingJob[playerid] = 1;
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
SendClientMessageToAll(COLOR_YELLOW, string);
SendClientMessage(playerid,COLOR_YELLOW,"* Clean the street for 1 minute and recieve $200");
SetTimerEx("SweeperJobFinish", 60000, false, "i", playerid);
return 1;
}
SendClientMessage(playerid, COLOR_RED,"You have to be in a streetsweeper to start the job");
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
{
SendClientMessage(playerid, COLOR_RED, "* You can start the sweepingjob by using /sweeper");
}
return 0;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(SweepingJob[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "* You have left your job, you won't be payed.");
SweepingJob[playerid] = 0;
}
}

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)