07.11.2011, 18:16
Script Request Thread #5
08.11.2011, 21:39
Hello,
I would like a Car Rental System in ZCMD + Sscanf using Y_INI, Willing to Rep+ anyone who helps
Thanks,
Seanny
I would like a Car Rental System in ZCMD + Sscanf using Y_INI, Willing to Rep+ anyone who helps
Thanks,
Seanny
09.11.2011, 12:46
09.11.2011, 16:32
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;
}
09.11.2011, 17:49
Can anybody help me with the automatically starting fires around the server, and paging the fire department for them?
10.11.2011, 18:10
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.");
}
}
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;
}
The first pwn code is taken from OnPlayerText second is from OnDialogResponse
11.11.2011, 14:44
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
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
12.11.2011, 12:05
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?
PWN:http://solidfiles.com/d/66e0e/
AMX:http://solidfiles.com/d/b90c0/
I really need help,please?
15.11.2011, 19:29
17.11.2011, 18:24
Quote:
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. |
Code:
if(newkeys & KEY_HORN) && IsPlayerInAnyVehicle(playerid)) {
Code:
if(newkeys & KEY_HORN && IsPlayerInAnyVehicle(playerid)) {
17.11.2011, 18:43
Can you help me with: /spec(tate) ; /speclist and /specoff please ? I use GodFather
17.11.2011, 20:19
It surely does help, thanks a bunch!
18.11.2011, 02:52
19.11.2011, 03:30
Hello, I am requested House System with features : /enterh . /exith . /buyhouse . /sellhouse . and spawnat house when i dead or Connect thanks
19.11.2011, 05:45
Use PPC_HOSING Its Very Cool You can Buy House Car' and upgrade house and many more command in PPC_housing
19.11.2011, 06:18
19.11.2011, 07:41
You Can use /gohome To Teleport To Ur House
19.11.2011, 10:21
19.11.2011, 13:31
Hi all i need script for snow weather
20.11.2011, 11:15
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 );
}
« Next Oldest | Next Newest »
Users browsing this thread: 13 Guest(s)