01.03.2013, 15:27
jumm tienes razon no pense en otros scripts, entonces esta podria ser otra forma como la indican Cesar y Grove;
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/comando1", cmdtext, true, 10) == 0)
{
if(GetPlayerVirtualWorld(playerid) != 0)
return SendClientMessage(playerid,-1,"** Tu debes estar en el virtual world numero 0");
Funcion();
return 1;
}
if (strcmp("/comando2", cmdtext, true, 10) == 0)
{
if(GetPlayerVirtualWorld(playerid) != 5)
return SendClientMessage(playerid,-1,"** Tu debes estar en el virtual world numero 5");
Funcion();
return 1;
}
if (strcmp("/comando3", cmdtext, true, 10) == 0)
{
if(GetPlayerVirtualWorld(playerid) != 8)
return SendClientMessage(playerid,-1,"** Tu debes estar en el virtual world numero 8");
Funcion();
return 1;
}
return 0;
}