28.01.2013, 18:24
(
Последний раз редактировалось jonathan_agv; 28.01.2013 в 20:12.
)
'---'topico fechado ninguem entende
if(!strcmp(cmdtext, "/speed", true)) {
if(!IsPlayerInAnyVehicle(playerid)) return 0;
new Float:x, Float:y, Float:z;
new vehid = GetPlayerVehicleID(playerid);
GetVehicleVelocity(vehid, x, y, z); SetVehicleVelocity(vehid, x + (x / 4), y + (y / 4), z + (z / 4));
return 1;
}
if(strcmp(cmd,"/ircoord",true)==0 && PlayerInfo[playerid][pAdmin] == 0)
{
new plid,Float:setpos[3];
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xFF0000AA, "USE: /ircoord [id] [X] [Y] [Z] (Retire as virgulas)");
plid = strval(tmp);
for(new x=0;x<3;x++)
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xFF0000AA, "USE: /ircoord [id] [X] [Y] [Z] (Retire as virgulas)");
setpos[x] = floatstr(tmp);
}
SetPlayerPos(playerid,setpos[0],setpos[1],setpos[2]);
SendClientMessage(playerid, 0xFF0000AA, "Posiзгo setada!");//No cor_white vc subistiui por uma que tenha no seu gm
return 1;
}
warning 204: symbol is assigned a value that is never used: "State"
Aqui tem como voce tira isto o, tipo eu quero que seta EU para a coordenada, nao o [ID]
pawn Код:
|