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)
{
if(Casas[playerid] == 50) SetPlayerPos(playerid,-711.9154,957.8517,12.3465);
if(Casas[playerid] == 6) SetPlayerPos(playerid,-2103.3135,901.9716,76.7109);
if(Casas[playerid] == 1) SetPlayerPos(playerid,1286.47, -617.70, 103.31);
if(Casas[playerid] == 5) SetPlayerPos(playerid,316.3569,-1772.8700,4.7035);
if(Casas[playerid] == 8) SetPlayerPos(playerid,-364.6039,1165.8597,19.7422);
if(Casas[playerid] == 222) SetPlayerPos(playerid,428.8789,2536.1514,16.3718);
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;
}
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;
}
Tenta assim:
pawn Код:
|
if (!strcmp("/Casavip", cmdtext, true)) {
if(!Vip[playerid]) return SendClientMessage(playerid, moderador, "{FF0000}Erro: {FFAE00}Comando sу para {A69F3C}VIPґs.{FFAE00} Queres ser vip? {FF0000}/url");
if(!Casas[playerid]) return SendClientMessage(playerid, moderador, "{FF0000}Erro: {FFAE00}Comando sу para quem tem casas! Favelas e tendas nгo conta");
if(Casas[playerid]) {
switch(Casas[playerid]) {
case 1: SetPlayerPos(playerid,1286.47, -617.70, 103.31);
case 3: SetPlayerPos(playerid,-1438.8979,-1539.9557,101.7578);
case 5: SetPlayerPos(playerid,316.3569,-1772.8700,4.7035);
case 6: SetPlayerPos(playerid,-2103.3135,901.9716,76.7109);
case 8: SetPlayerPos(playerid,-364.6039,1165.8597,19.7422);
case 50: SetPlayerPos(playerid,-711.9154,957.8517,12.3465);
case 222: SetPlayerPos(playerid,428.8789,2536.1514,16.3718);
}
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;
}