24.01.2014, 07:12
In My Server,I Added /checkvip To Check If A Player Is Vip But It Doesnt Work In:
dcmd_checkvip(playerid,params[]) {
new id=strval(params);
if(!strlen(params) || !IsNumeric(params)) {
return SendClientMessage(playerid,red,"USAGE: /checkvip [playerid]");
}
else if(!IsPlayerConnected(id)) {
return SendClientMessage(playerid,red,"The Player is not connected");
}
else if(IsPlayerConnected(id)){
if(IsPlayerVipType(id,1))
{
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"%s (%i) Is A Vip Member.", name,playerid);
}
}
else
{
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"%s (%i) Isn't A Vip Member.", name,playerid);
}
return 1;
}
I need help in This Problem.
dcmd_checkvip(playerid,params[]) {
new id=strval(params);
if(!strlen(params) || !IsNumeric(params)) {
return SendClientMessage(playerid,red,"USAGE: /checkvip [playerid]");
}
else if(!IsPlayerConnected(id)) {
return SendClientMessage(playerid,red,"The Player is not connected");
}
else if(IsPlayerConnected(id)){
if(IsPlayerVipType(id,1))
{
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"%s (%i) Is A Vip Member.", name,playerid);
}
}
else
{
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"%s (%i) Isn't A Vip Member.", name,playerid);
}
return 1;
}
I need help in This Problem.