Script Request Thread #5

Quote:
Originally Posted by admigo
View Post
I need a bank system for dini pls.
The search button is your best friend!
Reply

Hello,
I would like a Car Rental System in ZCMD + Sscanf using Y_INI, Willing to Rep+ anyone who helps

Thanks,
Seanny
Reply

Quote:
Originally Posted by [HLF]Southclaw
View Post
If you have no real friends...
Lol'd!

Anyway, I need a small script that makes the vehicle health the same as the players health.
Sow when I crash into something my health would be taken away with the same amount as it did for the car.

Thanks in advance!
Reply

pawn Code:
SetTimer("CheckP",1000,true); //under ongamemodeinit

forward CheckP();
public CheckP()
{
    for(new i=0; i<MAX_PLAYERS;i++;)
    {
        if(IsPlayerInAnyVehicle(i))
        {
            new Float:he;
            GetVehicleHealth(GetPlayerVehicleID(playerid),he);
            SetPlayerHealth(playerid,he/10);
        }
    }
    return 1;
}
Reply

Can anybody help me with the automatically starting fires around the server, and paging the fire department for them?
Reply

pawn Code:
if(Mobile[playerid] == 390) // Arms Dealer number // Ammount
    {
        if(PlayerInfo[playerid][pJob] > 8)
        {
            new randtime = random(3),h,mi,s;
            #pragma unused s
            gettime(h,mi,s);
            if(mi > 30)
            {
                SendClientMessage(playerid, COLOR_WHITE, "Old Man (cellphone): I've got a important call. Beep.. Beep..");
                SendClientMessage(playerid, COLOR_GRAD2, "  They Hung Up..");
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
                Mobile[playerid] = 255;
                return 0;
            }
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "Old Man: What did ya' say?.");
                return 0;
            }
            else if ((strcmp("One", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("one")))
            {
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                if(randtime == 0) { printf("Pick it up at %d:%d",h,mi+15); PlayerInfo[playerid][pPickupTime] = 15; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Yep, pick up your stuff behind Dillimore Pay and spray in fifteen minutes."); }
                else if(randtime == 1) { printf("Pick it up at %d:%d",h,mi+20); PlayerInfo[playerid][pPickupTime] = 20; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff behind the Vinewood Gas in twenty minutes."); }
                else if(randtime == 2) { printf("Pick it up at %d:%d",h,mi+18); PlayerInfo[playerid][pPickupTime] = 18; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff at the LS Stadium in twenty minutes."); }
                else if(randtime == 3) { printf("Pick it up at %d:%d",h,mi+16); PlayerInfo[playerid][pPickupTime] = 16; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff in the bush behind Marina Burgershot in fifteen minutes."); }
                Mobile[playerid] = 255;
                return 0;
            }
            else if ((strcmp("Two", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("two")))
            {
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                if(randtime == 0) { printf("Pick it up at %d:%d",h,mi+15); PlayerInfo[playerid][pPickupTime] = 15; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Yep, pick up your stuff behind Dillimore Pay and spray in fifteen minutes."); }
                else if(randtime == 1) { printf("Pick it up at %d:%d",h,mi+20); PlayerInfo[playerid][pPickupTime] = 20; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff behind the Vinewood Gas in twenty minutes."); }
                else if(randtime == 2) { printf("Pick it up at %d:%d",h,mi+18); PlayerInfo[playerid][pPickupTime] = 18; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff at the LS Stadium in twenty minutes."); }
                else if(randtime == 3) { printf("Pick it up at %d:%d",h,mi+16); PlayerInfo[playerid][pPickupTime] = 16; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff in the bush behind Marina Burgershot in fifteen minutes."); }
                Mobile[playerid] = 255;
                return 0;
            }
            else if ((strcmp("Three", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("three")))
            {
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                if(randtime == 0) { printf("Pick it up at %d:%d",h,mi+15); PlayerInfo[playerid][pPickupTime] = 15; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Yep, pick up your stuff behind Dillimore Pay and spray in fifteen minutes."); }
                else if(randtime == 1) { printf("Pick it up at %d:%d",h,mi+20); PlayerInfo[playerid][pPickupTime] = 20; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff behind the Vinewood Gas in twenty minutes."); }
                else if(randtime == 2) { printf("Pick it up at %d:%d",h,mi+18); PlayerInfo[playerid][pPickupTime] = 18; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff at the LS Stadium in twenty minutes."); }
                else if(randtime == 3) { printf("Pick it up at %d:%d",h,mi+16); PlayerInfo[playerid][pPickupTime] = 16; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff in the bush behind Marina Burgershot in fifteen minutes."); }
                Mobile[playerid] = 255;
                return 0;
            }
            else if ((strcmp("Four", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("four")))
            {
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                if(randtime == 0) { printf("Pick it up at %d:%d",h,mi+15); PlayerInfo[playerid][pPickupTime] = 15; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Yep, pick up your stuff behind Dillimore Pay and spray in fifteen minutes."); }
                else if(randtime == 1) { printf("Pick it up at %d:%d",h,mi+20); PlayerInfo[playerid][pPickupTime] = 20; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff behind the Vinewood Gas in twenty minutes."); }
                else if(randtime == 2) { printf("Pick it up at %d:%d",h,mi+18); PlayerInfo[playerid][pPickupTime] = 18; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff at the LS Stadium in twenty minutes."); }
                else if(randtime == 3) { printf("Pick it up at %d:%d",h,mi+16); PlayerInfo[playerid][pPickupTime] = 16; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff in the bush behind Marina Burgershot in fifteen minutes."); }
                Mobile[playerid] = 255;
                return 0;
            }
            else if ((strcmp("Five", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("five")))
            {
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                if(randtime == 0) { printf("Pick it up at %d:%d",h,mi+15); PlayerInfo[playerid][pPickupTime] = 15; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Yep, pick up your stuff behind Dillimore Pay and spray in fifteen minutes."); }
                else if(randtime == 1) { printf("Pick it up at %d:%d",h,mi+20); PlayerInfo[playerid][pPickupTime] = 20; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff behind the Vinewood Gas in twenty minutes."); }
                else if(randtime == 2) { printf("Pick it up at %d:%d",h,mi+18); PlayerInfo[playerid][pPickupTime] = 18; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff at the LS Stadium in twenty minutes."); }
                else if(randtime == 3) { printf("Pick it up at %d:%d",h,mi+16); PlayerInfo[playerid][pPickupTime] = 16; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff in the bush behind Marina Burgershot in fifteen minutes."); }
                Mobile[playerid] = 255;
                return 0;
            }
            else if ((strcmp("Six", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("six")))
            {
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                if(randtime == 0) { printf("Pick it up at %d:%d",h,mi+15); PlayerInfo[playerid][pPickupTime] = 15; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Yep, pick up your stuff behind Dillimore Pay and spray in fifteen minutes."); }
                else if(randtime == 1) { printf("Pick it up at %d:%d",h,mi+20); PlayerInfo[playerid][pPickupTime] = 20; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff behind the Vinewood Gas in twenty minutes."); }
                else if(randtime == 2) { printf("Pick it up at %d:%d",h,mi+18); PlayerInfo[playerid][pPickupTime] = 18; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff at the LS Stadium in twenty minutes."); }
                else if(randtime == 3) { printf("Pick it up at %d:%d",h,mi+16); PlayerInfo[playerid][pPickupTime] = 16; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff in the bush behind Marina Burgershot in fifteen minutes."); }
                Mobile[playerid] = 255;
                return 0;
            }
            else if ((strcmp("Seven", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("seven")))
            {
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                if(randtime == 0) { printf("Pick it up at %d:%d",h,mi+15); PlayerInfo[playerid][pPickupTime] = 15; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Yep, pick up your stuff behind Dillimore Pay and spray in fifteen minutes."); }
                else if(randtime == 1) { printf("Pick it up at %d:%d",h,mi+20); PlayerInfo[playerid][pPickupTime] = 20; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff behind the Vinewood Gas in twenty minutes."); }
                else if(randtime == 2) { printf("Pick it up at %d:%d",h,mi+18); PlayerInfo[playerid][pPickupTime] = 18; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff at the LS Stadium in twenty minutes."); }
                else if(randtime == 3) { printf("Pick it up at %d:%d",h,mi+16); PlayerInfo[playerid][pPickupTime] = 16; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff in the bush behind Marina Burgershot in fifteen minutes."); }
                Mobile[playerid] = 255;
                return 0;
            }
            else if ((strcmp("Eight", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("eight")))
            {
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                if(randtime == 0) { printf("Pick it up at %d:%d",h,mi+15); PlayerInfo[playerid][pPickupTime] = 15; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Yep, pick up your stuff behind Dillimore Pay and spray in fifteen minutes."); }
                else if(randtime == 1) { printf("Pick it up at %d:%d",h,mi+20); PlayerInfo[playerid][pPickupTime] = 20; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff behind the Vinewood Gas in twenty minutes."); }
                else if(randtime == 2) { printf("Pick it up at %d:%d",h,mi+18); PlayerInfo[playerid][pPickupTime] = 18; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff at the LS Stadium in twenty minutes."); }
                else if(randtime == 3) { printf("Pick it up at %d:%d",h,mi+16); PlayerInfo[playerid][pPickupTime] = 16; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff in the bush behind Marina Burgershot in fifteen minutes."); }
                Mobile[playerid] = 255;
                return 0;
            }
            else if ((strcmp("Nine", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("nine")))
            {
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                if(randtime == 0) { printf("Pick it up at %d:%d",h,mi+15); PlayerInfo[playerid][pPickupTime] = 15; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Yep, pick up your stuff behind Dillimore Pay and spray in fifteen minutes."); }
                else if(randtime == 1) { printf("Pick it up at %d:%d",h,mi+20); PlayerInfo[playerid][pPickupTime] = 20; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff behind the Vinewood Gas in twenty minutes."); }
                else if(randtime == 2) { printf("Pick it up at %d:%d",h,mi+18); PlayerInfo[playerid][pPickupTime] = 18; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff at the LS Stadium in twenty minutes."); }
                else if(randtime == 3) { printf("Pick it up at %d:%d",h,mi+16); PlayerInfo[playerid][pPickupTime] = 16; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff in the bush behind Marina Burgershot in fifteen minutes."); }
                Mobile[playerid] = 255;
                return 0;
            }
            else if ((strcmp("Ten", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("ten")))
            {
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                if(randtime == 0) { printf("Pick it up at %d:%d",h,mi+15); PlayerInfo[playerid][pPickupTime] = 15; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Yep, pick up your stuff behind Dillimore Pay and spray in fifteen minutes."); }
                else if(randtime == 1) { printf("Pick it up at %d:%d",h,mi+20); PlayerInfo[playerid][pPickupTime] = 20; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff behind the Vinewood Gas in twenty minutes."); }
                else if(randtime == 2) { printf("Pick it up at %d:%d",h,mi+18); PlayerInfo[playerid][pPickupTime] = 18; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff at the LS Stadium in twenty minutes."); }
                else if(randtime == 3) { printf("Pick it up at %d:%d",h,mi+16); PlayerInfo[playerid][pPickupTime] = 16; SendClientMessage(playerid, COLOR_ALLDEPT, "Old Man (cellphone): Sure, pick up your stuff in the bush behind Marina Burgershot in fifteen minutes."); }
                Mobile[playerid] = 255;
                return 0;
            }
            else
            {
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                SendClientMessage(playerid, COLOR_WHITE, "Old Man: What did ya' say?.");
                SendClientMessage(playerid, COLOR_GREY, "(( Tell him how many parts you want. ))");
                return 0;
            }
     }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "Old Man: I have no idea who I am talking to, see ya.");
        }
    }
    if(Mobile[playerid] == 397) // Arms Dealer number
    {
        if(PlayerInfo[playerid][pJob] > 8)
        {
            if(!strlen(tmp))
            {
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                SendClientMessage(playerid, COLOR_WHITE, "Old Man (cellphone): Sorry, I didnt catch your order could you please tell it again.");
                SendClientMessage(playerid, COLOR_GREY, "((You can choose between - {EE5555}SMGParts{FFFFFF} - {EE5555}RifleParts{FFFFFF} - {EE5555}HandgunParts{FFFFFF}))");
                return 0;
            }
            else if ((strcmp("SMGparts", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("smgparts")))
            {
                new h,mi,s;
                gettime(h,mi,s);
                if(mi > 30)
                {
                    SendClientMessage(playerid, COLOR_WHITE, "Old Man (cellphone): I've got a important call. Beep.. Beep..");
                    SendClientMessage(playerid, COLOR_GRAD2, "  They Hung Up..");
                    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
                    Mobile[playerid] = 255;
                    return 0;
                }
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                SendClientMessage(playerid, COLOR_WHITE, "Old Man (cellphone): Sounds great, I'll get them for you as soon as possible, partner.");
                SendClientMessage(playerid, COLOR_WHITE, "Old Man (cellphone): But, how many of these parts are you in need of?");
                Mobile[playerid] = 390;
                return 0;
            }
            else if ((strcmp("RifleParts", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("rifleparts")))
            {
                new h,mi,s;
                gettime(h,mi,s);
                if(mi > 30)
                {
                    SendClientMessage(playerid, COLOR_WHITE, "Old Man (cellphone): I've got a important call. Beep.. Beep..");
                    SendClientMessage(playerid, COLOR_GRAD2, "  They Hung Up..");
                    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
                    Mobile[playerid] = 255;
                    return 0;
                }
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                SendClientMessage(playerid, COLOR_WHITE, "Old Man (cellphone): Excellent choice, I'll get them for you as soon as possible, partner.");
                SendClientMessage(playerid, COLOR_WHITE, "Old Man (cellphone): But, how many of these parts are you in need of?");
                Mobile[playerid] = 390;
                return 0;
            }
            else if ((strcmp("HandgunParts", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("handgunparts")))
            {
                new h,mi,s;
                gettime(h,mi,s);
                if(mi > 30)
                {
                    SendClientMessage(playerid, COLOR_WHITE, "Old Man (cellphone): I've got a important call. Beep.. Beep..");
                    SendClientMessage(playerid, COLOR_GRAD2, "  They Hung Up..");
                    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
                    Mobile[playerid] = 255;
                    return 0;
                }
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                SendClientMessage(playerid, COLOR_WHITE, "Old Man (cellphone): Sounds easy, I'll get them for you as soon as possible, partner.");
                SendClientMessage(playerid, COLOR_WHITE, "Old Man (cellphone): But, how many of these parts are you in need of?");
                Mobile[playerid] = 390;
                return 0;
            }
            else
            {
                format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerNameEx(playerid), text);
                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                SendClientMessage(playerid, COLOR_WHITE, "Old Man (cellphone): Sorry, I didnt catch your order could you please tell it again.");
                SendClientMessage(playerid, COLOR_GREY, "((You can choose between - {EE5555}SMG Parts{FFFFFF} - {EE5555}Rifle Parts{FFFFFF} - {EE5555}Handgun Parts{FFFFFF}))");
                return 0;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "Old Man: I have no idea who I am talking to, see ya.");
        }
    }
Hey, the shown command was made for the gun dealer job
He should call this number and order stuff from a 'dealer'.
At the moment when I call this number comes up "Old man: Good day!Which kind of parts are you in need today?"
At this point according the code I need to insert name of part for ex : 'handgunparts' 'smgparts'.
But no matter what I type it gives me : "Old man: I have no idea who am I talking to, cya."

If you guys notice something wrong please share

Okay I found it :
pawn Code:
if(phonenumb == 397)
            {
                new h,mi,s;
                gettime(h,mi,s);
                if(mi > 30)
                {
                    SendClientMessage(playerid, COLOR_WHITE, "Old Man (cellphone): I don't have time right now, call me later.");
                    SendClientMessage(playerid, COLOR_GRAD2, "  They Hung Up..");
                    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
                    Mobile[playerid] = 255;
                    return 1;
                }
                SendClientMessage(playerid, COLOR_WHITE, "Old Man: Good day! Which kind of parts are you in need of today?");
                Mobile[playerid] = 397;
                return 1;
            }
By the way, I use OnPlayerText as include and OnDialogResponse as include aslo.
The first pwn code is taken from OnPlayerText second is from OnDialogResponse
Reply

Hi players,

Can someone please make or give me a ROB system for stores? i realy need it for my Roleplay server

If you can script maybe you can make one.

Greetz Stefan
Reply

I really need help to create vehicle deleting/creating system to this script:

PWN:http://solidfiles.com/d/66e0e/

AMX:http://solidfiles.com/d/b90c0/


I really need help,please?
Reply

Does anybody know where can I find filterscript for ownership like this :
Reply

Quote:
Originally Posted by K4P3L_KUM4R
View Post
Still 4 errors

Code:
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\gamemodes\Sampever.pwn(26743) : error 029: invalid expression, assumed zero
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\gamemodes\Sampever.pwn(26743) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\gamemodes\Sampever.pwn(26743) : error 029: invalid expression, assumed zero
C:\Documents and Settings\XPPRESP3\Desktop\samp03csvr_R5_win32\samp03csvr_R5_win32\gamemodes\Sampever.pwn(26743) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Change
Code:
if(newkeys & KEY_HORN) && IsPlayerInAnyVehicle(playerid)) {
to
Code:
if(newkeys & KEY_HORN && IsPlayerInAnyVehicle(playerid)) {
Reply

Can you help me with: /spec(tate) ; /speclist and /specoff please ? I use GodFather
Reply

It surely does help, thanks a bunch!
Reply

Quote:
Originally Posted by costel_nistor96
View Post
Change
Code:
if(newkeys & KEY_HORN) && IsPlayerInAnyVehicle(playerid)) {
to
Code:
if(newkeys & KEY_HORN && IsPlayerInAnyVehicle(playerid)) {
Thanks Error Fixed
Reply

Hello, I am requested House System with features : /enterh . /exith . /buyhouse . /sellhouse . and spawnat house when i dead or Connect thanks
Reply

Use PPC_HOSING Its Very Cool You can Buy House Car' and upgrade house and many more command in PPC_housing
Reply

Quote:
Originally Posted by K4P3L_KUM4R
View Post
Use PPC_HOSING Its Very Cool You can Buy House Car' and upgrade house and many more command in PPC_housing
i ever use that , but PPC_Housing not spawn at house. i am need spawn at house when die and First connect to server . Thanks
Reply

You Can use /gohome To Teleport To Ur House
Reply

Quote:
Originally Posted by K4P3L_KUM4R
View Post
You Can use /gohome To Teleport To Ur House
ahh. it is abusing in my server because my game mode is TDM . I want Spawned at house . thanks
Reply

Hi all i need script for snow weather
Reply

Here you go:

pawn Code:
CMD:family(playerid, params[])
{
    if ( isnull ( params ) ) return SendClientMessage( playerid, -1, #Usage /family <text> );
   
    new
        pName[ MAX_PLAYER_NAME ],
        _message[ 128 ]
    ;
   
    GetPlayerName( playerid, pName, MAX_PLAYER_NAME );
   
    if ( PlayerInfo[ playerid ][ pLider ] == 5 || PlayerInfo[ playerid ][ pMember ] == 5 )
    {
       
        format( _message, sizeof ( _message ), "[Family nr.5] %s: %s", pName, params );
        for ( new i = 0; i != MAX_PLAYERS; ++i )
        {
            if ( PlayerInfo[ i ][ pLider ] == 5 || PlayerInfo[ i ][ pMember ] == 5 )
                SendClientMessage( i, -1, _message );
        }
    }
   
    else if ( PlayerInfo[ playerid ][ pLider ] == 4 || PlayerInfo[ playerid ][ pMember ] == 4 )
    {
       
        format( _message, sizeof ( _message ), "[Family nr.4] %s: %s", pName, params );
        for ( new i = 0; i != MAX_PLAYERS; ++i )
        {
            if ( PlayerInfo[ i ][ pLider ] == 4 || PlayerInfo[ i ][ pMember ] == 4 )
                SendClientMessage( i, -1, _message );
        }
    }
   
    else return SendClientMessage( playerid, -1, #You are not in a family );
   
    return ( 1 );
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)