22.03.2012, 16:28
Please help , I dont know how to make /accet job .
CMD:accept(playerid, params[])
{
if(strcmp(params,"job", true) == 0)
{
//Your job code here.
}
else SendClientMessage(playerid, -1,"/accept [job/etc../etc..]");
return 1;
}
if(strcmp(cmd,"/accept",true)==0) { if(IsPlayerConnected(playerid)) { new x_job[128]; x_job = strtok(cmdtext, idx); if(!strlen(x_job)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /accept [name]"); SendClientMessage(playerid, COLOR_GRAD1, "Available names: Job"); return 1; else if(strcmp(x_job,"job",true) == 0) { if(GettingJob[playerid] > 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new commands."); PlayerInfo[playerid][pJob] = GettingJob[playerid]; GettingJob[playerid] = 0; if(PlayerInfo[playerid][pJob] == 9) { SendClientMessage(playerid, COLOR_WHITE, "HINT: You can find materials packages behind ammunations."); } if(PlayerInfo[playerid][pJob] == 17) { SendClientMessage(playerid, COLOR_WHITE, "HINT: You can find drug crates at the drug factory in Blueberry."); if(CP[playerid] == 0) { SetPlayerCheckpoint(playerid, 51.9720,-292.6349,1.7031, 3.0); //drug factory CP[playerid] = 7; } } return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You haven't even been at a Job place yet!"); return 1; } }