Larsey123IsMe
Unregistered
Can someone make an /Spec [ID] command for me?
I have tryied bt my self and looked at wiki, but ill failed =/
I would appreciate that!!!
Posts: 3,793
Threads: 196
Joined: Jan 2010
Reputation:
0
TogglePlayerSpectating
Scanff
Dcmd/zcmd
Just learn to use those ...
Larsey123IsMe
Unregistered
Quote:
Originally Posted by Lorenc_
TogglePlayerSpectating
Scanff
Dcmd/zcmd
Just learn to use those ...
|
can you please make that for me?, /Spec [ID] Only for admins!
PLEASE!!!
Larsey123IsMe
Unregistered
Whats wrong?
pawn Код:
#include <a_samp>
#include <dcmd>
#include <sscanf>
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(spec,4,cmdtext);
return 0;
}
dcmd_spec(playerid, params[])
{
new
id;
if (sscanf(params, "u", id)) SendClientMessage(playerid,0xFF0000AA, "USAGE: /spec id");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid,0xFF0000AA, "Player is not found");
else
if(IsPlayerAdmin(playerid))
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, id);
}
return 1;
}
Errors:
pawn Код:
C:\Users\Larsey123\Documents\SAMP Server\My server\pawno\include\sscanf.inc(4) : error 021: symbol already defined: "sscanf"
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\Spec.pwn(21) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Larsey123IsMe
Unregistered
Thanks, but when i spec and then he enter a car, then ill see inside of car, but i want to see the outside of car