01.01.2011, 20:56
if(strcmp(cmd, "/setcasa", true) == 0)
{
new ID;
ID = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFF0000AA, "USO: /setcasa [ID]");
return 1;
}
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
HouseInfo[tmp][SpawnX] = X;
HouseInfo[tmp][SpawnY] = Y;
HouseInfo[tmp][SpawnZ] = Z;
}
if(strcmp(cmd, "/salvardados", true) == 0)
{
if(PlayerInfo[playerid][Admin] >= 4)
{
Casas();
}
return 1;
}
{
new ID;
ID = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFF0000AA, "USO: /setcasa [ID]");
return 1;
}
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
HouseInfo[tmp][SpawnX] = X;
HouseInfo[tmp][SpawnY] = Y;
HouseInfo[tmp][SpawnZ] = Z;
}
if(strcmp(cmd, "/salvardados", true) == 0)
{
if(PlayerInfo[playerid][Admin] >= 4)
{
Casas();
}
return 1;
}