17.11.2013, 21:10
pawn Код:
if (strcmp("/hablav", cmd, true) == 0)
{
if (UsuarioVip[playerid][Vip] >= 1 )
{
new tmp[128],string[256], vip[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
if(strlen(tmp) == 0) return SendClientMessage(playerid, COLOR_ROJO, "{FFFF00}[VIP]:{FFFFFF} Usa: /V [Texto].");
GetPlayerName(playerid, vip, MAX_PLAYER_NAME);
format(string, 256, "{0099FF}VIP [%s]: {ACFF00}%s",vip, -->playerid<--, cmdtext[6]);
SendClientMessageToAll(COLOR_AMARILLO,string);
}
else return SendClientMessage(playerid, COLOR_ROJO, "{FFFF00}[VIP]:{FFFFFF} Comando solo para usuarios {FFFF00}VIPS {FFFFFF}nivel 1.");
return 1;
}
pawn Код:
if (strcmp("/hablav", cmd, true) == 0)
{
if (UsuarioVip[playerid][Vip] >= 1 )
{
new tmp[128],string[256], vip[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
if(strlen(tmp) == 0) return SendClientMessage(playerid, COLOR_ROJO, "{FFFF00}[VIP]:{FFFFFF} Usa: /V [Texto].");
GetPlayerName(playerid, vip, MAX_PLAYER_NAME);
format(string, 256, "{0099FF}VIP [%s]: {ACFF00}%s",vip, tmp);
SendClientMessageToAll(COLOR_AMARILLO,string);
}
else return SendClientMessage(playerid, COLOR_ROJO, "{FFFF00}[VIP]:{FFFFFF} Comando solo para usuarios {FFFF00}VIPS {FFFFFF}nivel 1.");
return 1;
}