/togpm for VIP's problem - 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: /togpm for VIP's problem (
/showthread.php?tid=401986)
/togpm for VIP's problem -
FL3GM4 - 24.12.2012
i want to make..
if is player VIP can block PMs, if isn't cant block PMs xD but i have little problems...
Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(1526) : error 017: undefined symbol "NoPM"
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(1531) : error 017: undefined symbol "NoPM"
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(2880) : warning 217: loose indentation
Код:
CMD:togpm(playerid, params[])
{
if(PlayerInfo[playerid][VIP] == 1)
{
PlayerInfo[playerid][NoPM] = 1;
SendClientMessage(playerid, COLOR_GREEN, "[SERVER]You are no longer accepting private messages");
}
else
{
PlayerInfo[playerid][NoPM] = 0;
SendClientMessage(playerid, COLOR_GREEN, "[SERVER]You are now accepting private messages");
}
return 1;
}
Re: /togpm for VIP's problem -
Typhome - 24.12.2012
Have you defined 'NoPM' variable in PlayerInfo enum?
Re: /togpm for VIP's problem -
FL3GM4 - 24.12.2012
its now defubed in enum ...
bit i need to block PMs on some way?
Re: /togpm for VIP's problem -
Typhome - 24.12.2012
If you have now defined, then compile it.
Check at /pm and don't allow someone to pm player, if player has NoPM = 1
Re: /togpm for VIP's problem -
FL3GM4 - 24.12.2012
yes, i compiled it without erros, but its doesnt block PMs... they can still send me PMs
Re: /togpm for VIP's problem -
FL3GM4 - 24.12.2012
sorry for DP, but i can block PMs but i nee dto relog... how to make that i dont need to go relog to block/accept PMs