15.12.2011, 04:01
And how can i get this to say Caged for (time) seconds
pawn Code:
public CagePlayer(playerid)
{
if(IsPlayerConnected(playerid))
{
new Index;
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z+5);
cage[playerid] = CreateObject(985, X, Y+4, Z+5, 0.0, 0.0, 0.0);
cage2[playerid] = CreateObject(985, X+4, Y, Z+5, 0.0, 0.0, 90.0);
cage3[playerid] = CreateObject(985, X-4, Y, Z+5, 0.0, 0.0, 270.0);
cage4[playerid] = CreateObject(985, X, Y-4, Z+5, 0.0, 0.0, 180.0);
cage5[playerid] = CreateObject(985, X, Y+1.8, Z+3.5, 90.0, 0.0, 0);
cage6[playerid] = CreateObject(985, X, Y+1.8, Z+10, 90.0, 0.0, 0);
TogglePlayerControllable(playerid, 1);
PlayerPlaySound(playerid,1137,0.0,0.0,0.0);
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~r~Caged ~n~for seconds",3000, 3, tmp2);
}
}