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.