01.09.2009, 00:05
I need a VIP system for these commands
a example of one of the commands
dcmd_vr(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][VIPl] >= 1) { what do I have to put at the top of the script for this to work?
if (IsPlayerInAnyVehicle(playerid)) {
SetVehicleHealth(GetPlayerVehicleID(playerid),1250 .0);
return SendClientMessage(playerid,blue,"Vehicle Fixed");
} else return SendClientMessage(playerid,red,"Error: You are not in a vehicle");
} else return SendClientMessage(playerid,red,"ERROR: You are not a VIP");
}
and need some help with VIP chat.
public OnPlayerText(playerid, text[])
{
if(text[0] == '#' && PlayerInfo[playerid][VIP] >= 1) {
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"VIP Chat: %s: %s",string,text[1]); MessageToVIP(green,string);
return 0;
}
what forwards do I need for this stuff to work.
OR even better is there a VIP system to download with cool unlockables
pawn Код:
dcmd_level1(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] > 0)
{
SendClientMessage(playerid,blue," ---=Level 1 Admin Commands =---");
SendClientMessage(playerid,lightblue,"getinfo, weaps, vr, repair, ltune, lhy, lnos, lp, asay, ping, lslowmo, ltc,");
SendClientMessage(playerid,lightblue,"morning, adminarea, reports, richlist, miniguns, saveplacae, gotoplace,");
SendClientMessage(playerid,lightblue,"saveskin, useskin, dontuseskin, setmytime, ip, lconfig.");
}
return 1;
}
dcmd_vr(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][VIPl] >= 1) { what do I have to put at the top of the script for this to work?
if (IsPlayerInAnyVehicle(playerid)) {
SetVehicleHealth(GetPlayerVehicleID(playerid),1250 .0);
return SendClientMessage(playerid,blue,"Vehicle Fixed");
} else return SendClientMessage(playerid,red,"Error: You are not in a vehicle");
} else return SendClientMessage(playerid,red,"ERROR: You are not a VIP");
}
and need some help with VIP chat.
public OnPlayerText(playerid, text[])
{
if(text[0] == '#' && PlayerInfo[playerid][VIP] >= 1) {
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"VIP Chat: %s: %s",string,text[1]); MessageToVIP(green,string);
return 0;
}
what forwards do I need for this stuff to work.
OR even better is there a VIP system to download with cool unlockables