Da li je moguće da kada utipkamo npr./1 koji će teleportirati igraÄa na odreÄ'eno mjesto u gradi ili odreÄ'enu utrku bude u isto vrijeme i naredba ali i da se u isto vrijeme ispiÅ¡e text s nekom porukom o npr.pravilima te konkretne utrke.ZnaÄi da je dovoljno upisati npr/1 pa da se igraÄ i teleportira i istovremeno dobije poruku ne znam tipa ovo je utrka s biciklima,znam kako to napisati svako za sebe no zajedno nisam uspio.Hvala.
if(strcmp(cmd, "/gotonrg", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -1990.8082,845.3881,45.6682);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, -1990.8082,845.3881,45.6682);
}
SendClientMessage(playerid, COLOR_LIGHTBLUE, "__________________________________________________");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "|~|~|Pravila Utrke|~|~|");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "__________________________________________________");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Nisi autoriziran za koristenje te komande!");
}
}
return 1;
}
i ovo di su prazni navodnici SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
stavi svoje tekst :D
Hvala na trudu no meÄ'utim kad to kopiram u teles,dobijem samo puno greÅ¡aka,u stvari mislim da nisam dobro napisao Å¡to mi treba.Dakle treba mi teleport samo za playera kojem ujedno Å¡aljem poruku ali ne preko naredbe SendClientMessage nego SendPlayerFormattedText,zato jer se ta poruka pojavljuje sastrane jer ima viÅ¡e texta.
}
if(strcmp("/blabla", cmdtext, true) == 0)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-826.0325,2653.7512,132.3963); // koordinate tog mjesta
SetCameraBehindPlayer(playerid); // nije potrebno ali ja to prakticiram :D
TogglePlayerControllable(playerid,0); // takodje nije potrebno ali eto da nebi bilo bugova
format(string, sizeof(string), "Blabla dosli ste na ovaj race itd xD!", blabla);
GameTextForAll(string, 4000, 6); // ako zelis za samo za igraca koji je ovo kucao izbrisi ovaj line
return 1;
}