12.09.2011, 11:04
I'm trying to make it so when people /join they get teleported to a location, and a few messages pop up and a check point appears on there map
But the only two problems are, when I do /join it says the rest of the messages except "Go to a weapons crate to get weapons. One has been marked on your map"
And the checkpoint doesn't appear on the map either.
Current code:
But the only two problems are, when I do /join it says the rest of the messages except "Go to a weapons crate to get weapons. One has been marked on your map"
And the checkpoint doesn't appear on the map either.
Current code:
pawn Код:
if(strcmp(cmdtext, "/join", true) == 0)
{
if(PartyStarted == false) return SendClientMessage(playerid, COLOR_RED, "No one has started a event yet.");
if(AtParty[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You're already in the event, type /leave to leave.");
SetPlayerPos(playerid, 2169.0952,-3170.2466,190);
SetPlayerFacingAngle(playerid, 344.3667);
AtParty[playerid] = true;
SetPlayerCheckpoint(playerid, 2160.5581,-3017.5974,191, 7.0);
SendClientMessage(playerid, COLOR_GREEN, "Welcome to the Event, if you wish to leave use /leave.");
SendClientMessage(playerid, COLOR_GREEN, "Go to a weapons crate to get weapons. One has been marked on your map");
return 1;
}