Ajutor!!
#4

Quote:
Originally Posted by Calinut200
Посмотреть сообщение
Am o comanda /getjobc si vreau sa ii schimbe din job 0 in job 1.
Am incercat cu pInfo[playerid][pJob]=1;
dar nu se schimba in folderul user/job=0

PHP код:
CMD:getjobc(playerid)
{
    if(
IsPlayerInRangeOfPoint(playerid,4,589.7928,870.6724,-42.4973))
    {
    
SendClientMessage(playerid,-1,"{FF0000}INFO:{FFFFFF}Acuma esti muncitor la cariera");
    
PlayerInfo[playerid][pJob] = 1;
    }
    else 
SendClientMessage(playerid, -1"{FF0000}INFO:{FFFFFF}Nu esti in locul potrivit,ti-am setat un checkpoint catre job.");
    
SetPlayerCheckpoint(playerid,589.7928,870.6724,-42.4973,3.0);
    
onjobc[playerid] = true;
    return 
1;

CMD:getjobc(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,4,589.7928,870. 6724,-42.4973))
{
SendClientMessage(playerid,-1,"{FF0000}INFO:{FFFFFF}Acuma esti muncitor la cariera");
PlayerInfo[playerid][pJob] = 1;
}
else SendClientMessage(playerid, -1, "{FF0000}INFO:{FFFFFF}Nu esti in locul potrivit,ti-am setat un checkpoint catre job.");
SetPlayerCheckpoint(playerid,589.7928,870.6724,-42.4973,3.0);
onjobc[playerid] = true;
new INI:PlayerFile = INI_Open(aici puneti adresa catre fisier al acestui player);
INI_WriteInt(PlayerFile,"Job",PlayerInfo[playerid][pJob]);
INI_Close(PlayerFile);
return 1;
}
Reply


Messages In This Thread
Ajutor la comanda /getjobc - by Calinut200 - 17.06.2016, 12:31
Re: Ajutor!! - by Lumineux - 17.06.2016, 13:41
Re: Ajutor!! - by Calinut200 - 17.06.2016, 15:45
Re: Ajutor la comanda /getjobc - by shiftlol - 17.06.2016, 16:31
Re: Ajutor la comanda /getjobc - by Calinut200 - 17.06.2016, 16:37
Re: Ajutor la comanda /getjobc - by shiftlol - 17.06.2016, 16:46
Re: Ajutor la comanda /getjobc - by shiftlol - 17.06.2016, 16:48
Re: Ajutor la comanda /getjobc - by Calinut200 - 17.06.2016, 17:06
Re: Ajutor la comanda /getjobc - by shiftlol - 17.06.2016, 17:08
Re: Ajutor la comanda /getjobc - by Calinut200 - 17.06.2016, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)