29.07.2011, 20:01
Tenho Esse Mano
e Esse De IR
Espero Ter Ajudado!
PHP код:
if(strcmp(cmd, "/trazer", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(IsPlayerAdmin(playerid)){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "(ERRO) Digite: /trazer [id]");
return 1;
}
plid = strval(tmp);
if(IsPlayerConnected(plid)){
new interiormeu;
interiormeu = GetPlayerInterior(playerid);
SetPlayerInterior(plid, interiormeu);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(plid, X, Y, Z);
{
new VehicleID;
VehicleID = GetPlayerVehicleID(plid);
SetVehiclePos(VehicleID,X+4,Y+4,Z);
PutPlayerInVehicle(plid,VehicleID,0);
}
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
return 1;
}else{
SendClientMessage(playerid, 0xFF0000AA, "(ERRO) ID invбlido");
return 1;
}
}
}
PHP код:
if(strcmp(cmd, "/ir", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(IsPlayerAdmin(playerid)){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "(ERRO) Digite: /ir [id]");
return 1;
}
plid = strval(tmp);
if(IsPlayerConnected(plid)){
new interiordele;
interiordele = GetPlayerInterior(plid);
SetPlayerInterior(playerid, interiordele);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(plid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,X+1,Y+1,Z);
PutPlayerInVehicle(playerid,VehicleID,0);
}
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
return 1;
}else{
SendClientMessage(playerid, Vermelho, "(ERRO)ID invбlido");
return 1;
}
}
}