Need help with two things.
#6

Quote:
Originally Posted by airplanesimen
Посмотреть сообщение
That code you provided is only showing when a player is entering a checkpoint, and what to do next. You need to create the very first checkpoint in your job command:

pawn Код:
CMD:getjob(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 4.0,-46.5548,-108.5900,3.1172))
    {
        wJob[playerid] = 1;
        SendClientMessage(playerid, -1, "{FF0000}[INFO]: {15FF00}You have chose your job.");
        SetPlayerCheckpoint(/*THE POS FOR THE FIRST CHECKPOINT IN HERE*/); //Modify this to be correct with your code.
     
    }
    else
   {
         //send a message or something here saying that the player is not close to the checkpoint if you want to
    }
    return 1;
}

And in order to make join messages like you want; you can do something like this, which he posted above me. Just add it under "OnPlayerConnect"


pawn Код:
public OnPlayerConnect(playerid)
{
    new s[70], xip[24], aname[24];
    GetPlayerIp(playerid, xip, 24); //Get the ip and save it into "xip"
    GetPlayerName(playerid, aname, 24); //Get the name of the player and save it into "aname"
    format(s, sizeof(s), "{FF9E00}%s {FFFFFF}has joined the server [IP: (%s)]", aname, xip); //add this message into the "s"  string and add the variables we found above
    SendClientMessage(playerid, -1, s); //then send the string we made
    return 1;
}
I tried this, but it said that the symbol getplayerip is already defined.
Reply


Messages In This Thread
Need help with two things. - by mkmk - 03.11.2014, 19:46
Respuesta: Need help with two things. - by Tusso4 - 03.11.2014, 20:08
Re: Need help with two things. - by denNorske - 03.11.2014, 20:47
Re: Need help with two things. - by mkmk - 03.11.2014, 21:59
Re: Need help with two things. - by denNorske - 03.11.2014, 22:16
Re: Need help with two things. - by mkmk - 03.11.2014, 22:26
Re: Need help with two things. - by mkmk - 03.11.2014, 23:05
Re: Need help with two things. - by denNorske - 03.11.2014, 23:14
Respuesta: Need help with two things. - by Tusso4 - 04.11.2014, 01:03

Forum Jump:


Users browsing this thread: 3 Guest(s)