Jump to content
  • 0

Question

Posted

Deci am incercat sa fac o comanda cu PlayerToPoint...acum am facut cu IsPlayerInRangeOfPoint dar am o problema

Daca nu is in acea zona nu merge comanda(asta e bine)

Daca sunt in acea zona comanda merge dar imi trimite un mesaj care ar trebui sa il trimita cand nu sunt in acel loc...uitati comanda

[pawn] CMD:startrace(playerid,params[])

{

if(IsPlayerInRangeOfPoint(playerid,7,2096.3289, 1284.3533, 10.0142))

{

SetPlayerInterior(playerid,0);

SetTimer("CountDown",10000,0);

SendClientMessageToAll(yellow,"The Race {FF000}was been started ,Type /Race {FFFAAAF}to join,Race Will Start In 10 Seconds");

SendClientMessage(playerid,yellow," Type /LeaveRace To exit");

TogglePlayerControllable(playerid,0);

Race[playerid] = 1;

}

else

{

SCM(playerid,yellow, "You Can't {FF000} start race ..{FFFAAAF}Type /Race and try again");

}

return 1;

}[/pawn]

Massari e curva mea

2 answers to this question

Recommended Posts

Posted

CMD:startrace(playerid,params[])
{
	if(IsPlayerInRangeOfPoint(playerid,7,2096.3289, 1284.3533, 10.0142))
	{
		SetPlayerInterior(playerid,0);
		SetTimer("CountDown",10000,0);
		SendClientMessageToAll(yellow,"The Race {FF000}was been started ,Type /Race {FFFAAAF}to join,Race Will Start In 10 Seconds");
		SendClientMessage(playerid,yellow," Type /LeaveRace To exit");
		TogglePlayerControllable(playerid,0);
		Race[playerid] = 1;
		return 1;
	}
	else return SCM(playerid,yellow, "You Can't {FF000} start race ..{FFFAAAF}Type /Race and try again");
}

incearca asta...

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.