-
Sziasztok!
Ez egy mentõ hívó parancs
CMD:104(playerid, params[])
{
new Float:x, Float:y, Float:z;
new name[3], string[128];
GetPlayerPos(playerid, x, y, z);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), \"%s(%d) Hívta a mentõket!\", name, playerid);
SendClientMessageToAll(0x33CCFFAA, string);
for(new i; i<MAX_PLAYERS; i++) if (!GetPVarInt(playerid, \"Szolgalat\"))//innentõl hibás
SetPlayerCheckpoint(playerid, x, y , z, 2.0);
return 1;
}
Nos ezzel az a probléma, hogy így se készít checkpointot, de át kéne alakítani hogy ne checkpointot csináljon, hanem a kis négyzetet színezze át, de csak annak mutassa hogy más a színe, aki mentõs.
-
CMD:104(playerid, params[])
{
new Float:x, Float:y, Float:z;
new name[3], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), \"%s(%d) Hívta a mentõket!\", name, playerid);
SendClientMessageToAll(0x33CCFFAA, string);
for(new i; i<MAX_PLAYERS; i++) if (!GetPVarInt(playerid, \"Szolgalat\"))//innentõl hibás
GetPlayerPos(playerid, x, y, z);
SetPlayerCheckpoint(playerid, x, y , z, 2.0);
return 1;
}
Próbáld meg igy.
-
De akkor a mentõsnek állítja be...
-
Akkor csináld úgy,hogy elkeljen fogadni egy parancsal pl /elfogadmentõ <id/név> és kész..
-
CMD:104(playerid, params[])
{
new Float:x, Float:y, Float:z;
new name[3], string[128];
GetPlayerPos(playerid, x, y, z);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), \"%s(%d) Hívta a mentõket!\", name, playerid);
SendClientMessageToAll(0x33CCFFAA, string);
for(new i; i<MAX_PLAYERS; i++){ if (GetPVarInt(i, \"Szolgalat\")) { //
SetPlayerCheckpoint(i x, y , z, 2.0); } }
return 1;
}
Szerintem is csinálj elfogadó parancsot...
-
Es azt hogy kene?
-
Nézd meg a dt-modba :whistle:
-
Attila se írt nagy hülyeséget
Ha géphez jutok és nem felejtem el megcsinom