25.05.2012, 19:31
(
Последний раз редактировалось ReDKiiL; 26.05.2012 в 00:57.
)
@RESOLVIDO
CMD:tvp(playerid,params[])
{
if(PlayerInfo[playerid][Level] < 2)return SendClientMessage(playerid,fail,LEVELF);
if(isnull(params))return SendClientMessage(playerid,fail,"Uso: /tvp [hunter/rhino/sea/hydra/off]");
if(!strcmp(params,"hunter",true))
{
Escondido[playerid] = true;
for(new z = 0, w = GetMaxPlayers(); z != w; z++)
{
if(PlayerInfo[playerid][Level] > 0) continue;
SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
}
SetPlayerCameraPos(playerid,1239.3661,-805.9535,110.9401);
SetPlayerPos(playerid,1239.3661,-805.9535,-20.0330);
SetPlayerCameraLookAt(playerid, 1291.2206,-786.4736,77.0330);
TogglePlayerControllable(playerid,false);
}
else if(!strcmp(params,"rhino",true))
{
Escondido[playerid] = true;
for(new z = 0, w = GetMaxPlayers(); z != w; z++)
{
if(PlayerInfo[playerid][Level] > 0) continue;
SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
}
SetPlayerCameraPos(playerid,-2170.2761,953.9464,111.7996);
SetPlayerPos(playerid,-2170.2761,953.9464,-20.0330);
SetPlayerCameraLookAt(playerid, -2186.5146,983.4494,80.0088);
TogglePlayerControllable(playerid,false);
}
else if(!strcmp(params,"sea",true))
{
Escondido[playerid] = true;
for(new z = 0, w = GetMaxPlayers(); z != w; z++)
{
if(PlayerInfo[playerid][Level] > 0) continue;
SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
}
SetPlayerCameraPos(playerid,-757.9343,2220.5144,68.5085);
SetPlayerPos(playerid,-757.9343,2220.5144,-20.0330);
SetPlayerCameraLookAt(playerid, -803.0589,2233.4280,41.4292);
TogglePlayerControllable(playerid,false);
}
else if(!strcmp(params,"hydra",true))
{
Escondido[playerid] = true;
for(new z = 0, w = GetMaxPlayers(); z != w; z++)
{
if(PlayerInfo[playerid][Level] > 0) continue;
SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
}
SetPlayerCameraPos(playerid,2124.7163,2383.6973,90.4862);
SetPlayerPos(playerid,2124.7163,2383.6973,-20.0330);
SetPlayerCameraLookAt(playerid, 2093.0266,2415.1536,75.1315);
TogglePlayerControllable(playerid,false);
}
else if(!strcmp(params,"off",true))
{
SetCameraBehindPlayer(playerid);
SpawnPlayer(playerid);
TogglePlayerControllable(playerid,true);
Escondido[playerid] = false;
for(new z = 0, w = GetMaxPlayers(); z != w; z++)
{
if(PlayerInfo[playerid][Level] > 0) continue;
SetPlayerMarkerForPlayer(playerid,z, ( GetPlayerColor( z ) | 0x000000FF ));
}
}
return 1;
}
SetPlayerMarkerForPlayer
CMD:tvp(playerid,params[])
{
if(PlayerInfo[playerid][Level] < 2)return SendClientMessage(playerid,fail,LEVELF);
if(isnull(params))return SendClientMessage(playerid,fail,"Uso: /tvp [hunter/rhino/sea/hydra/off]");
if(!strcmp(params,"hunter",true))
{
Escondido[playerid] = true;
ShowPlayerMarkers(0);
for(new z = 0, w = GetMaxPlayers(); z != w; z++)
{
if(PlayerInfo[playerid][Level] > 0) continue;
SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
}
SetPlayerCameraPos(playerid,1239.3661,-805.9535,110.9401);
SetPlayerPos(playerid,1239.3661,-805.9535,-20.0330);
SetPlayerCameraLookAt(playerid, 1291.2206,-786.4736,77.0330);
TogglePlayerControllable(playerid,false);
}
else if(!strcmp(params,"rhino",true))
{
Escondido[playerid] = true;
ShowPlayerMarkers(0);
for(new z = 0, w = GetMaxPlayers(); z != w; z++)
{
if(PlayerInfo[playerid][Level] > 0) continue;
SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
}
SetPlayerCameraPos(playerid,-2170.2761,953.9464,111.7996);
SetPlayerPos(playerid,-2170.2761,953.9464,-20.0330);
SetPlayerCameraLookAt(playerid, -2186.5146,983.4494,80.0088);
TogglePlayerControllable(playerid,false);
}
else if(!strcmp(params,"sea",true))
{
Escondido[playerid] = true;
ShowPlayerMarkers(0);
for(new z = 0, w = GetMaxPlayers(); z != w; z++)
{
if(PlayerInfo[playerid][Level] > 0) continue;
SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
}
SetPlayerCameraPos(playerid,-757.9343,2220.5144,68.5085);
SetPlayerPos(playerid,-757.9343,2220.5144,-20.0330);
SetPlayerCameraLookAt(playerid, -803.0589,2233.4280,41.4292);
TogglePlayerControllable(playerid,false);
}
else if(!strcmp(params,"hydra",true))
{
Escondido[playerid] = true;
ShowPlayerMarkers(0);
for(new z = 0, w = GetMaxPlayers(); z != w; z++)
{
if(PlayerInfo[playerid][Level] > 0) continue;
SetPlayerMarkerForPlayer(playerid,z, 0xFFFFFFFF);
}
SetPlayerCameraPos(playerid,2124.7163,2383.6973,90.4862);
SetPlayerPos(playerid,2124.7163,2383.6973,-20.0330);
SetPlayerCameraLookAt(playerid, 2093.0266,2415.1536,75.1315);
TogglePlayerControllable(playerid,false);
}
else if(!strcmp(params,"off",true))
{
SetCameraBehindPlayer(playerid);
SpawnPlayer(playerid);
TogglePlayerControllable(playerid,true);
Escondido[playerid] = false;
ShowPlayerMarkers(0);
for(new z = 0, w = GetMaxPlayers(); z != w; z++)
{
SetPlayerMarkerForPlayer(playerid,z, ( GetPlayerColor( z ) | 0x000000FF ));
}
}
return 1;
}
Mas isso nгo tem Lуgica, veja o prуprio nome da funзгo:
SETPlayerMARKERForPLAYER E a prуpria Wiki diz... |