25.07.2016, 22:19
Quote:
|
E ai safchdion, tudo bem?
Sу queria deixar um code aqui, rs... Код:
new
cmd[256], idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/SetVirtualWorld", true) == 0)
{
cmd = strtok(cmdtext, idx);
if(!strlen(cmd))
{
SendClientMessage(playerid, Vermelho, "[>]"BRANCO" Use /Set VirtualWorld [Player] [Virtual World]");
return 1;
}
new
id = strval(cmd);
if(!IsPlayerConnected(id))
{
SendClientMessage(playerid, Vermelho, "[>]"BRANCO" Player offline");
return 1;
}
cmd = strtok(cmdtext, idx);
if(!strlen(cmd))
{
SendClientMessage(playerid, Vermelho, "[>]"BRANCO" Use /Set VirtualWorld [Player] [Virtual World]");
return 1;
}
new
vw = strval(cmd);
if(vw < 0)
{
SendClientMessage(playerid, Vermelho, "[>]"BRANCO" O Virtual World deve ser maior ou igual a 0");
return 1;
}
SetPlayerVirtualWorld(id, vw);
format(String, sizeof(String), " O administrador %s setou seu virtual world para %d", pName(playerid), vw);
SendClientMessage(id, Amarelo, String);
format(String, sizeof(String), "Vocк setou o virtual world do player %s para %d", pName(id), vw);
SendClientMessage(playerid, Amarelo, String);
|

Ou atй mesmo eu mais tarde pra incrementar o meu estude o seu,obrigado ^^


