Wysłany: 2012-07-13, 22:46
__.A.__
Wiek: 30 Na forum: 5171 dni Posty: 151
Piwa : 855
Witam mam Mape PP i nie wiem jak przerobi? tp z gugi na cmd czyli jak wyskakuje to okno to bierzesz akceptuj i gracz si? teleportuje mam zrobione tak ale nie dzia?a
Kod:
Kod: COMMAND:idzdo(playerid, params[])
{
new PlayerId;
if(sscanf(params, "u", PlayerId))
{
SendClientMessage(playerid, COLOR_ERROR, " ›› |b??d| U?yj: /idzdo [id gracza]");
return 1;
}
if(PlayerId == INVALID_PLAYER_ID)
{
SendClientMessage(playerid, COLOR_ERROR, " ›› |b??d| Nie ma gracza o podanym ID.");
return 1;
}
if(playerid == PlayerId)
{
SendClientMessage(playerid, COLOR_ERROR, " ›› |b??d| Poda?e?/a? swoje id!");
return 1;
}
if(Player[PlayerId][TPRefused][playerid])
{
SendClientMessage(playerid, COLOR_ERROR, " ›› |b??d| Ten gracz odrzuci? zaproszenie.");
return 1;
}
if(EventPlayers[PlayerId])
{
SendClientMessage(playerid, COLOR_ERROR, " ›› |b??d| Ten gracz jest na evencie.");
return 1;
}
GoTo(playerid, PlayerId);
return 1;
}
forward tpczas(playerid);
public tpczas(playerid)
{
new PlayerId = Player[playerid][ClickedPlayer];
if(Player[PlayerId][TPRefused][playerid])
{
SendClientMessage(playerid, COLOR_ERROR, " ›› |b??d| Ten gracz Nie Zakceptowa? Zaproszenia czas mino? !.");
return 1;
}
GoTo(playerid, PlayerId);
Player[playerid][ClickedPlayer] = -1;
return 1;
}
COMMAND:akcepttp(playerid, params[])
{
new PlayerTP;
TeleportPlayer(PlayerTP, playerid);
SendClientMessage(PlayerTP, COLOR_GREEN, "Gracz zaakceptowa? zaproszenie.");
Player[PlayerTP][TPTo] = INVALID_PLAYER_ID;
Player[playerid][TPRefused][PlayerTP] = true;
return 1;
}
GoTo(PlayerId, ToPlayerId)
{
new String[255];
Player[PlayerId][TPTo] = ToPlayerId;
SendClientMessage(PlayerId, COLOR_Fioletowy, " ›› |info| Zaproszenie zosta?o wys?ane.");
format(String, sizeof(String), "{FFFFFF}Gracz {0080F0}%s |%d| {FFFFFF chce si? do ciebie teleportowa?\nWyra?asz na to zgod?? Wpisz /AkceptTp.",Player[PlayerId][Name], PlayerId);
}
Nie pokazuje graczowi nformacji a jak wpisuje /akcepttp to nie tele Prosze o pomoc.
Wysłany: 2012-07-14, 10:11
Combacior
Wiek: 29 Na forum: 5795 dni Posty: 1516
Piwa : 2161
Kod: GoTo(PlayerId, ToPlayerId)
{
new String[255];
Player[PlayerId][TPTo] = ToPlayerId;
SendClientMessage(PlayerId, COLOR_Fioletowy, " ›› |info| Zaproszenie zosta?o wys?ane.");
format(String, sizeof(String), "{FFFFFF}Gracz {0080F0}%s |%d| {FFFFFF chce si? do ciebie teleportowa?\nWyra?asz na to zgod?? Wpisz /AkceptTp.",Player[PlayerId][Name], PlayerId);
ShowPlayerDialog(PlayerId, 100, DIALOG_STYLE_MSGBOX, String, "Ok", "");
}
Napisa?e?, ?e nie pokazuje graczowi informacji, a u?y?e? takowej funkcji ? Wys?a?e? wiadomo?? tylko jednemu graczowi, a drugiemu ju? nie.
Wysłany: 2012-07-14, 11:46
rudek6
Mix_By_Van_Matys :D
Wiek: 45 Na forum: 5191 dni Posty: 46
Nick w MP: Van_Matys
Piwa : 16
Fajny Pomys? !
A jak ci zadzia?a to wy?lesz kod pawn na pw ?
chcia?bym mie? to w swojej mapce PP
Wysłany: 2012-07-14, 21:03
__.A.__
Wiek: 30 Na forum: 5171 dni Posty: 151
Piwa : 855
CombaT To nic nie daje pokazuje mi informacje jak wysy?am np /idzdo 9 pokazuje mi okno i jak wpisuje /Akcepttp to teleportuje jedynie id 0 a Plugin Po aktulizacji wi?c nie ma to nic do tego..
Podpis
new map test beta:
ip serwera: 80.72.36.203:4056
Tagi: idzdo
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: