30.07.2012, 10:42
Hi,i what to make command /stadium,when player type /stadium to teleport him to stadium location.Can someone tell me how to do it,and i will add my coordinats.Thnks
CMD:stadium(playerid, params[])
{
SetPlayerPos(playerid, coordsX,coordsY,coordsZ);
SendClientMessage(playerid, 0xFFFFFFFF, "You have been teleported to the stadium");
return 1;
}
if(!strcmp(cmdtext, "/stadium", true))
{
SetPlayerPos(playerid, coordsX,coordsY,coordsZ);
SendClientMessage(playerid, 0xFFFFFFFF, "You have been teleported to the stadium");
}
if(strcmp(cmdtext, "/stadium", true) == 0)
{
SetPlayerPos(playerid, coordsX,coordsY,coordsZ);
SendClientMessage(playerid, 0xFFFFFFFF, "You have been teleported to the stadium");
}