13.08.2013, 13:35
(
Последний раз редактировалось Heisenbergx2; 13.08.2013 в 18:15.
)
EDIT: NO LONGER NEED HELP HERE THANKS
I was wondering how do I create multiple jobs. I have now 1 job in my scripts:
So the question is how can I make a second one with a same style?
I was wondering how do I create multiple jobs. I have now 1 job in my scripts:
pawn Код:
new Job[256];
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/job 1", cmdtext, true, 10) == 0)
{
Job[playerid] = 1;
SetPlayerCheckpoint(playerid, 261.4925 , -270.4117 , 1.5781 , 1);
SendClientMessage(playerid , 0x489048FF , "------------------------------------------------");
SendClientMessage(playerid , 0x489048FF , "Go to the red marker to get the package");
return 1;
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(Job[playerid] == 1)
{
Job[playerid] = 2;
SetPlayerCheckpoint(playerid, 2469.0454 , -1278.4165 , 30.3664 , 1);
SendClientMessage(playerid, 0x489048FF , "--------------------------------------------------------------");
SendClientMessage(playerid, 0x489048FF , "You have recieved the package");
SendClientMessage(playerid, 0x489048FF , "Take the package to the next checkpoint");
return 1;
}
if(Job[playerid] == 2)
{
GivePlayerMoney(playerid , 300);
SendClientMessage(playerid , 0x489048FF , "------------------------------------------------------");
SendClientMessage(playerid , 0x489048FF , "You have succesfully delievered the package, payment: 300$");
DisablePlayerCheckpoint(playerid);
}
return 1;
}