13.05.2012, 15:42
how i make zones? like "SanAndreasZones" zones like that. example: i want whenver player is in world 1 or world 2 the whole zone will show name like "world 1" or "world 2". how i can name SanAndreasZones by world?
if (strcmp(cmdtext, "/world3", true) == 0)
{
SetPlayerVirtualWorld(playerid, 3);////this 3 want to say virtual world 3
return 1;
}
if (strcmp(cmdtext, "/world4", true) == 0)
{
SetPlayerVirtualWorld(playerid, 4);////this 3 want to say virtual world 4, and you can edit it :)
return 1;
}
new pVW = GetPlayerVirtualWorld(playerid);
switch (pVW)
{
case 1,2: //<~~add your worlds here
{
//add your zone code here
//use zones for world 1 and 2
}
default:
{
//dont use zone code
}
}
new pVW = GetPlayerVirtualWorld(playerid);
switch (pVW)
{
case 1: //<~~add your worlds here
{
//add your zone code here (idk what it mean)
//use zones for world 1 and 2 (idk what this mean)
}
default:
{
//where do i put here?
}
}