16.06.2009, 11:06
pawn Код:
if (strcmp(cmdtext, "/kapiac", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
SendPlayerFormattedText(playerid, "Sadece adminler kapiyi acabilir.", 0);
}
else
{
if(AttachObjectToPlayer(adminkapi,playerid,1.5, 0.5, 0, 0, 1.5, 2)) //You were missing a ')'
{
MoveObject(adminkapi, 1256.65, -766.82, 92.75, 8);
}
else
{
PlayerPlaySound(playerid, 1035, 0.0, 0.0, 0.0);
MoveObject(adminkapi, 1256.65, -766.82, 92.75, 8);
}
}
return 1;
}