public OnPlayerCommandText(playerid, cmdtext[]) //----------------------------------[LICENSE]----------------------------------------------- if(strcmp(cmd, "/buylicense", true) == 0) { if(IsPlayerConnected(playerid) && PlayerToPoint(2.0, playerid, 361.8299,173.6302,1008.3828)) { TogglePlayerControllable(playerid, 0); ShowPlayerDialog(playerid, LICMENU, DIALOG_STYLE_LIST, "Odaberi Licencu","Voznja $2000\nLetenje $5000\nPlovidba $800\nOruzje $8000", "Kupi", "Cancel"); return 1; } } //---------------------------<[ OnDialogResponse ]>-------------------------------------------------------- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) if(dialogid == LICMENU) { if(response) { if(listitem == 0) // Car Liceses { if (PlayerInfo[playerid][pCarLic] == 0 && GetPlayerMoney(playerid) > 49) { GivePlayerMoney(playerid,-2000); PlayerInfo[playerid][pCarLic] = 1; SendClientMessage(playerid, COLOR_GREEN, " Kupio si vozacku dozvolu!"); SendClientMessage(playerid, COLOR_GRAD5, " Mozes provijeriti licence ako upises /licenses !"); TogglePlayerControllable(playerid, 1); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!"); TogglePlayerControllable(playerid, 1); } } if(listitem == 1) // Flying Licenses { if (GetPlayerMoney(playerid) > 4999) { GivePlayerMoney(playerid,-5000); PlayerInfo[playerid][pFlyLic] = 1; SendClientMessage(playerid, COLOR_GREEN, " Kupio si dozvolu za Letenje!"); SendClientMessage(playerid, COLOR_GRAD5, "Mozes provijeriti licence ako upises /licenses !"); TogglePlayerControllable(playerid, 1); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!"); TogglePlayerControllable(playerid, 1); } } if(listitem == 2) // Sail Licenses { if (GetPlayerMoney(playerid) > 799) { GivePlayerMoney(playerid,-800); PlayerInfo[playerid][pBoatLic] = 1; SendClientMessage(playerid, COLOR_GREEN, " Kupio si dozvolu za brod!"); SendClientMessage(playerid, COLOR_GRAD5, "Mozes provijeriti licence ako upises /licenses !"); TogglePlayerControllable(playerid, 1); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!"); TogglePlayerControllable(playerid, 1); } } if(listitem == 3) // Gun licenses { if (GetPlayerMoney(playerid) > 799) { GivePlayerMoney(playerid,-8000); PlayerInfo[playerid][pGunLic] = 1; SendClientMessage(playerid, COLOR_GREEN, " Kupio si dozvolu za oruzje!"); SendClientMessage(playerid, COLOR_GRAD5, "Mozes provijeriti licence ako upises /licenses !"); TogglePlayerControllable(playerid, 1); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!"); TogglePlayerControllable(playerid, 1); } } } } return 1; }
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/buylicense", true) == 0)
{
if(IsPlayerConnected(playerid) && PlayerToPoint(2.0, playerid, 361.8299,173.6302,1008.3828))
{
TogglePlayerControllable(playerid, 0);
ShowPlayerDialog(playerid, LICMENU, DIALOG_STYLE_LIST, "Odaberi Licencu","Voznja $2000\nLetenje $5000\nPlovidba $800\nOruzje $8000", "Kupi", "Cancel");
return 1;
}
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == LICMENU)
{
if(response)
{
if(listitem == 0) // Car Liceses
{
if (PlayerInfo[playerid][pCarLic] == 0 && GetPlayerMoney(playerid) > 49)
{
GivePlayerMoney(playerid,-2000);
PlayerInfo[playerid][pCarLic] = 1;
SendClientMessage(playerid, COLOR_GREEN, " Kupio si vozacku dozvolu!");
SendClientMessage(playerid, COLOR_GRAD5, " Mozes provijeriti licence ako upises /licenses !");
TogglePlayerControllable(playerid, 1);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!");
TogglePlayerControllable(playerid, 1);
}
}
if(listitem == 1) // Flying Licenses
{
if (GetPlayerMoney(playerid) > 4999)
{
GivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][pFlyLic] = 1;
SendClientMessage(playerid, COLOR_GREEN, " Kupio si dozvolu za Letenje!");
SendClientMessage(playerid, COLOR_GRAD5, "Mozes provijeriti licence ako upises /licenses !");
TogglePlayerControllable(playerid, 1);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!");
TogglePlayerControllable(playerid, 1);
}
}
if(listitem == 2) // Sail Licenses
{
if (GetPlayerMoney(playerid) > 799)
{
GivePlayerMoney(playerid,-800);
PlayerInfo[playerid][pBoatLic] = 1;
SendClientMessage(playerid, COLOR_GREEN, " Kupio si dozvolu za brod!");
SendClientMessage(playerid, COLOR_GRAD5, "Mozes provijeriti licence ako upises /licenses !");
TogglePlayerControllable(playerid, 1);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!");
TogglePlayerControllable(playerid, 1);
}
}
if(listitem == 3) // Gun licenses
{
if (GetPlayerMoney(playerid) > 799)
{
GivePlayerMoney(playerid,-8000);
PlayerInfo[playerid][pGunLic] = 1;
SendClientMessage(playerid, COLOR_GREEN, " Kupio si dozvolu za oruzje!");
SendClientMessage(playerid, COLOR_GRAD5, "Mozes provijeriti licence ako upises /licenses !");
TogglePlayerControllable(playerid, 1);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!");
TogglePlayerControllable(playerid, 1);
}
}
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmd, "/buylicense", true) == 0) { if(IsPlayerConnected(playerid) && PlayerToPoint(2.0, playerid, 361.8299,173.6302,1008.3828)) { TogglePlayerControllable(playerid, 0); ShowPlayerDialog(playerid, LICMENU, DIALOG_STYLE_LIST, "Odaberi Licencu","Voznja $2000\nLetenje $5000\nPlovidba $800\nOruzje $8000", "Kupi", "Cancel"); return 1; } } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == LICMENU) { if(response) { if(listitem == 0) // Car Liceses { if (PlayerInfo[playerid][pCarLic] == 0 && GetPlayerMoney(playerid) > 49) { GivePlayerMoney(playerid,-2000); PlayerInfo[playerid][pCarLic] = 1; SendClientMessage(playerid, COLOR_GREEN, " Kupio si vozacku dozvolu!"); SendClientMessage(playerid, COLOR_GRAD5, " Mozes provijeriti licence ako upises /licenses !"); TogglePlayerControllable(playerid, 1); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!"); TogglePlayerControllable(playerid, 1); } } if(listitem == 1) // Flying Licenses { if (GetPlayerMoney(playerid) > 4999) { GivePlayerMoney(playerid,-5000); PlayerInfo[playerid][pFlyLic] = 1; SendClientMessage(playerid, COLOR_GREEN, " Kupio si dozvolu za Letenje!"); SendClientMessage(playerid, COLOR_GRAD5, "Mozes provijeriti licence ako upises /licenses !"); TogglePlayerControllable(playerid, 1); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!"); TogglePlayerControllable(playerid, 1); } } if(listitem == 2) // Sail Licenses { if (GetPlayerMoney(playerid) > 799) { GivePlayerMoney(playerid,-800); PlayerInfo[playerid][pBoatLic] = 1; SendClientMessage(playerid, COLOR_GREEN, " Kupio si dozvolu za brod!"); SendClientMessage(playerid, COLOR_GRAD5, "Mozes provijeriti licence ako upises /licenses !"); TogglePlayerControllable(playerid, 1); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!"); TogglePlayerControllable(playerid, 1); } } if(listitem == 3) // Gun licenses { if (GetPlayerMoney(playerid) > 799) { GivePlayerMoney(playerid,-8000); PlayerInfo[playerid][pGunLic] = 1; SendClientMessage(playerid, COLOR_GREEN, " Kupio si dozvolu za oruzje!"); SendClientMessage(playerid, COLOR_GRAD5, "Mozes provijeriti licence ako upises /licenses !"); TogglePlayerControllable(playerid, 1); return 1; } } else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!"); TogglePlayerControllable(playerid, 1); } } return 1; }
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmd, "/buylicense", true) == 0) { if(IsPlayerConnected(playerid) && PlayerToPoint(2.0, playerid, 361.8299,173.6302,1008.3828)) { TogglePlayerControllable(playerid, 0); ShowPlayerDialog(playerid, LICMENU, DIALOG_STYLE_LIST, "Odaberi Licencu","Voznja $2000\nLetenje $5000\nPlovidba $800\nOruzje $8000", "Kupi", "Cancel"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == LICMENU) { if(response) { if(listitem == 0) // Car Liceses { if (PlayerInfo[playerid][pCarLic] == 0 && GetPlayerMoney(playerid) > 49) { GivePlayerMoney(playerid,-2000); PlayerInfo[playerid][pCarLic] = 1; SendClientMessage(playerid, COLOR_GREEN, " Kupio si vozacku dozvolu!"); SendClientMessage(playerid, COLOR_GRAD5, " Mozes provijeriti licence ako upises /licenses !"); TogglePlayerControllable(playerid, 1); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!"); TogglePlayerControllable(playerid, 1); } } if(listitem == 1) // Flying Licenses { if (GetPlayerMoney(playerid) > 4999) { GivePlayerMoney(playerid,-5000); PlayerInfo[playerid][pFlyLic] = 1; SendClientMessage(playerid, COLOR_GREEN, " Kupio si dozvolu za Letenje!"); SendClientMessage(playerid, COLOR_GRAD5, "Mozes provijeriti licence ako upises /licenses !"); TogglePlayerControllable(playerid, 1); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!"); TogglePlayerControllable(playerid, 1); } } if(listitem == 2) // Sail Licenses { if (GetPlayerMoney(playerid) > 799) { GivePlayerMoney(playerid,-800); PlayerInfo[playerid][pBoatLic] = 1; SendClientMessage(playerid, COLOR_GREEN, " Kupio si dozvolu za brod!"); SendClientMessage(playerid, COLOR_GRAD5, "Mozes provijeriti licence ako upises /licenses !"); TogglePlayerControllable(playerid, 1); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!"); TogglePlayerControllable(playerid, 1); } } if(listitem == 3) // Gun licenses { if (GetPlayerMoney(playerid) > 799) { GivePlayerMoney(playerid,-8000); PlayerInfo[playerid][pGunLic] = 1; SendClientMessage(playerid, COLOR_GREEN, " Kupio si dozvolu za oruzje!"); SendClientMessage(playerid, COLOR_GRAD5, "Mozes provijeriti licence ako upises /licenses !"); TogglePlayerControllable(playerid, 1); return 1; } } else { SendClientMessage(playerid, COLOR_LIGHTRED, "Vec imas licencu za voznju, ili nemas dovoljno novaca!"); TogglePlayerControllable(playerid, 1); } } return 1; }
C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1534) : error 004: function "SetPlayerToTeamColor" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1559) : error 004: function "SetPlayerToTeamColor" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1579) : error 004: function "SetPlayerCriminal" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1584) : error 004: function "SetPlayerCriminal" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1648) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1652) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1664) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1668) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1672) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1676) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1680) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1684) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1688) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1700) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1704) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1708) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1712) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1716) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1728) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1732) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1736) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1748) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(1752) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(2012) : error 004: function "SendIRCMessage" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(2034) : error 004: function "SendIRCMessage" is not implemented C:\Documents and Settings\MATOŠ\Desktop\SAMP SERVER\gamemodes\gf.pwn(2046) : error 004: function "SaveCK" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
Originally Posted by Matej682
i have defined it, i dont know what the problem is
btw. When i put IsPlayerInArea i get these errors: function "PlayerToPoint" is not implemented Any ideas |
Originally Posted by DarkPower
Pa register dialog ti je nesto najlakse napraviti i daj vise mi fkt dojadilo pomagat ljudima svi koriste j..... RP skripte
|
Originally Posted by DarkPower
Pa register dialog ti je nesto najlakse napraviti i daj vise mi fkt dojadilo pomagat ljudima svi koriste j..... RP skripte
edit translate: register dialog is something most easy to make you just need to know some basic, and i hate when players use RP scripts (modes) |
Originally Posted by Matej682
i have defined it, i dont know what the problem is
btw. When i put IsPlayerInArea i get these errors: function "PlayerToPoint" is not implemented Any ideas |