08.06.2012, 19:57
Tenta assim:
pawn Код:
if (strcmp("/Casavip", cmdtext, true)==0)
{
if(Vip[playerid] == 0) return SendClientMessage(playerid, moderador, "{FF0000}Erro: {FFAE00}Comando sу para {A69F3C}VIPґs.{FFAE00} Queres ser vip? {FF0000}/url");{
if(Casas[playerid] == 0) return SendClientMessage(playerid, moderador, "{FF0000}Erro: {FFAE00}Comando sу para quem tem casas! Favelas e tendas nгo conta");
if(Casas[playerid] > 0)
{
else if(Casas[playerid] == 50) SetPlayerPos(playerid,-711.9154,957.8517,12.3465);
else if(Casas[playerid] == 6) SetPlayerPos(playerid,-2103.3135,901.9716,76.7109);
else if(Casas[playerid] == 1) SetPlayerPos(playerid,1286.47, -617.70, 103.31);
else if(Casas[playerid] == 5) SetPlayerPos(playerid,316.3569,-1772.8700,4.7035);
else if(Casas[playerid] == 8) SetPlayerPos(playerid,-364.6039,1165.8597,19.7422);
else if(Casas[playerid] == 222) SetPlayerPos(playerid,428.8789,2536.1514,16.3718);
else if(Casas[playerid] == 3) SetPlayerPos(playerid,-1438.8979,-1539.9557,101.7578);
SendClientMessage(playerid,COR_TAN,"{FFFFFF}CasaVip - {FFAE00}De volta a casa");
SetPlayerInterior(playerid, 0);
}
if(GetPlayerWantedLevel(playerid)>1)
{
SetPlayerPos(playerid,194.7418,158.2326,1003.023);
SetPlayerInterior(playerid, 3);
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
new string[248];
format(string,sizeof(string),"{BDB562}[VIP]%s, {FFAE00}com duas estrelas tentou o comando de teleport! Foi preso!",pName);
SendClientMessageToAll(0xFFFFFFFF, string);
}
}
return 1;
}