3 problems - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3 problems (
/showthread.php?tid=323483)
3 problems -
AllOutRolePlay - 05.03.2012
1 I've been making a faction and I just get done, test the /cia command and it says unknown command, wtf? heres the CMD in script:
Код:
CMD:CIA(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
if (IsPlayerInRangeOfPoint(playerid,4, -761.904663, 2575.887451, 10016.670898) || IsPlayerInRangeOfPoint(playerid,4, -757.500488, 2575.700927, 10016.677734))
{
ShowPlayerDialog(playerid, CIADUTYMENU, DIALOG_STYLE_LIST, "CIA Menu","Duty \nEquipment \n Agent one Uniform \nAgent two Uniform \nUndercover \nClear Suspect", "Select", "Cancel");
}
else
{
SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your CIA lockers.");
}
}
return 1;
}
2 Im a newb at scripting I have a basic rp script witch my scripter has been developing, but he left, so where/how do i set where matruns are the system is already made
3 All the points in my server arnt where they are supposed to be and they are all called point "1" why?
Re: 3 problems -
Chrillzen - 05.03.2012
pawn Код:
CMD:CIA(playerid, params[])
{
if(PlayerInfo[playerid][pModel] == 13 || PlayerInfo[playerid][pCash] == 13)
if (IsPlayerInRangeOfPoint(playerid,4, -761.904663, 2575.887451, 10016.670898) || IsPlayerInRangeOfPoint(playerid,4, -757.500488, 2575.700927, 10016.677734))
{
ShowPlayerDialog(playerid, CIADUTYMENU, DIALOG_STYLE_LIST, "CIA Menu","Duty \nEquipment \n Agent one Uniform \nAgent two Uniform \nUndercover \nClear Suspect", "Select", "Cancel");
}
else
{
SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your CIA lockers.");
}
return 1;
}
Re: 3 problems -
AllOutRolePlay - 05.03.2012
Quote:
Originally Posted by Chrillzen
pawn Код:
CMD:CIA(playerid, params[]) { if(PlayerInfo[playerid][pModel] == 13 || PlayerInfo[playerid][pCash] == 13) if (IsPlayerInRangeOfPoint(playerid,4, -761.904663, 2575.887451, 10016.670898) || IsPlayerInRangeOfPoint(playerid,4, -757.500488, 2575.700927, 10016.677734)) { ShowPlayerDialog(playerid, CIADUTYMENU, DIALOG_STYLE_LIST, "CIA Menu","Duty \nEquipment \n Agent one Uniform \nAgent two Uniform \nUndercover \nClear Suspect", "Select", "Cancel"); } else { SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your CIA lockers."); } return 1;
}
|
I <3 you, thanks!