CreateObject(3550, 250.98654174805, 67.830352783203, 1006.5110473633, 0.000000, 0.000000, 0.000000); // CreateObject(1502, 250.70986938477, 62.392398834229, 1002.6156005859, 0.000000, 0.000000, 89.154907226563); // CreateObject(3051, 250.79043579102, 64.494049072266, 1003.9307861328, 0.000000, 0.000000, 45.789886474609); // CreateObject(1713, 243.02378845215, 68.683074951172, 1002.640625, 0.000000, 0.000000, 89.669921875); // CreateObject(1708, 244.02174377441, 71.537544250488, 1002.640625, 0.000000, 0.000000, 0.000000); // CreateObject(1721, 244.51010131836, 62.598743438721, 1002.640625, 0.000000, 0.000000, 0.000000); // CreateObject(1721, 243.69358825684, 62.615264892578, 1002.640625, 0.000000, 0.000000, 0.000000); // CreateObject(1721, 242.86639404297, 62.598052978516, 1002.640625, 0.000000, 0.000000, 0.000000); // CreateObject(1808, 249.73670959473, 71.914398193359, 1002.640625, 0.000000, 0.000000, 0.000000); // CreateObject(2611, 242.43002319336, 64.006004333496, 1004.6891479492, 0.000000, 0.000000, 89.934936523438); // CreateObject(1616, 243.12054443359, 62.747444152832, 1008.5332641602, 0.000000, 0.000000, 268.45031738281); // CreateObject(2190, 255.1600189209, 70.039154052734, 1003.4059448242, 0.000000, 0.000000, 269.49548339844); // CreateObject(2946, 247.36108398438, 72.589706420898, 1002.6656494141, 0.000000, 0.000000, 89.949951171875); // CreateObject(3051, 245.17515563965, 72.59602355957, 1004.0028076172, 0.000000, 0.000000, 314.25073242188); // CreateObject(2946, 248.84162902832, 72.595146179199, 1002.6656494141, 0.000000, 0.000000, 89.945068359375); // CreateObject(1722, 219.59440612793, 75.933464050293, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(1722, 218.49914550781, 75.958740234375, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(1722, 217.29843139648, 75.904106140137, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(1722, 216.01426696777, 75.864906311035, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(1722, 220.73988342285, 75.841018676758, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(1722, 220.03807067871, 77.426879882813, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(1722, 218.87133789063, 77.463508605957, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(1722, 217.7594909668, 77.355323791504, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(1722, 216.56452941895, 77.369445800781, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(1722, 215.37649536133, 77.418800354004, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(1722, 214.65602111816, 75.829460144043, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(2008, 215.78247070313, 81.044090270996, 1004.0390625, 0.000000, 0.000000, 179.41491699219); // CreateObject(1714, 214.87091064453, 82.226104736328, 1004.0390625, 0.000000, 0.000000, 21.834838867188); // CreateObject(3077, 219.07635498047, 82.89542388916, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(1886, 221.33540344238, 82.25048828125, 1007.5810546875, 0.000000, 0.000000, 328.47521972656); // CreateObject(1502, 226.32015991211, 74.888870239258, 1003.9389648438, 0.000000, 0.000000, 89.684936523438); // CreateObject(3051, 226.32043457031, 76.992576599121, 1005.4012451172, 0.000000, 0.000000, 44.864990234375); // CreateObject(1722, 222.48921203613, 76.449211120605, 1004.0390625, 0.000000, 0.000000, 268.33032226563); // CreateObject(1722, 222.47067260742, 77.171737670898, 1004.0390625, 0.000000, 0.000000, 268.330078125); // CreateObject(1722, 222.45887756348, 77.923652648926, 1004.0390625, 0.000000, 0.000000, 266.34521484375); // CreateObject(1502, 226.26928710938, 72.79077911377, 1004.0390625, 0.000000, 0.000000, 269.37634277344); // CreateObject(3051, 226.23928833008, 70.673973083496, 1005.4012451172, 0.000000, 0.000000, 44.862670898438); // CreateObject(1723, 221.36476135254, 66.636169433594, 1004.0390625, 0.000000, 0.000000, 178.69506835938); // CreateObject(1724, 218.10929870605, 67.569747924805, 1004.0390625, 0.000000, 0.000000, 140.95993041992); // CreateObject(2313, 218.6009979248, 72.34203338623, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(1786, 219.22261047363, 72.63631439209, 1004.5388183594, 0.000000, 0.000000, 0.000000); // CreateObject(1778, 217.34417724609, 72.735137939453, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(2164, 216.91206359863, 70.35831451416, 1004.0390625, 0.000000, 0.000000, 89.684997558594); // CreateObject(1822, 217.72256469727, 66.257873535156, 1004.0466308594, 0.000000, 0.000000, 0.000000); // CreateObject(1742, 220.90063476563, 72.932823181152, 1004.0390625, 0.000000, 0.000000, 0.000000); // CreateObject(1998, 256.07171630859, 82.298484802246, 1001.3452148438, 0.000000, 0.000000, 89.964965820313); // CreateObject(1671, 256.0934753418, 83.129386901855, 1001.9055175781, 0.000000, 0.000000, 244.33032226563); // CreateObject(1886, 269.91610717773, 92.318313598633, 1003.6058349609, 0.000000, 0.000000, 340.63513183594); // CreateObject(2700, 251.16133117676, 82.548553466797, 1004.2107543945, 0.000000, 0.000000, 0.000000); // CreateObject(2197, 257.2893371582, 85.475540161133, 1001.4453125, 0.000000, 0.000000, 270.50512695313); // CreateObject(2197, 257.30108642578, 86.176406860352, 1001.4453125, 0.000000, 0.000000, 268.02026367188); // CreateObject(2199, 258.75848388672, 83.970184326172, 1001.4453125, 0.000000, 0.000000, 269.55017089844); //
new door; CreateObject(2946, 247.36108398438, 72.589706420898, 1002.6656494141, 0.000000, 0.000000, 89.949951171875); public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/pdopen", true)==0) { MoveObject(2946, 248.84162902832, 72.595146179199, 1002.6656494141, 0.000000, 0.000000, 89.945068359375, 5); SendClientMessage(playerid, COLOR_BLUE,"Door is open, please close it"); return 1; } if (strcmp(cmdtext, "/pdclose", true)==0) { MoveObject(2946, 247.36108398438, 72.589706420898, 1002.6656494141, 0.000000, 0.000000, 89.949951171875, 5); // SendClientMessage(playerid, COLOR_BLUE,"Door is now closed"); return 1; }
new door;//esto arriba..
public OnGameModeInit()
{
//Aquiii los objetos
CreateObject(3550, 250.98654174805, 67.830352783203, 1006.5110473633, 0.000000, 0.000000, 0.000000); //
CreateObject(1502, 250.70986938477, 62.392398834229, 1002.6156005859, 0.000000, 0.000000, 89.154907226563); //
CreateObject(3051, 250.79043579102, 64.494049072266, 1003.9307861328, 0.000000, 0.000000, 45.789886474609); //
CreateObject(1713, 243.02378845215, 68.683074951172, 1002.640625, 0.000000, 0.000000, 89.669921875); //
CreateObject(1708, 244.02174377441, 71.537544250488, 1002.640625, 0.000000, 0.000000, 0.000000); //
CreateObject(1721, 244.51010131836, 62.598743438721, 1002.640625, 0.000000, 0.000000, 0.000000); //
CreateObject(1721, 243.69358825684, 62.615264892578, 1002.640625, 0.000000, 0.000000, 0.000000); //
CreateObject(1721, 242.86639404297, 62.598052978516, 1002.640625, 0.000000, 0.000000, 0.000000); //
CreateObject(1808, 249.73670959473, 71.914398193359, 1002.640625, 0.000000, 0.000000, 0.000000); //
CreateObject(2611, 242.43002319336, 64.006004333496, 1004.6891479492, 0.000000, 0.000000, 89.934936523438); //
CreateObject(1616, 243.12054443359, 62.747444152832, 1008.5332641602, 0.000000, 0.000000, 268.45031738281); //
CreateObject(2190, 255.1600189209, 70.039154052734, 1003.4059448242, 0.000000, 0.000000, 269.49548339844); //
CreateObject(2946, 247.36108398438, 72.589706420898, 1002.6656494141, 0.000000, 0.000000, 89.949951171875); //
CreateObject(3051, 245.17515563965, 72.59602355957, 1004.0028076172, 0.000000, 0.000000, 314.25073242188); //
CreateObject(2946, 248.84162902832, 72.595146179199, 1002.6656494141, 0.000000, 0.000000, 89.945068359375); //
CreateObject(1722, 219.59440612793, 75.933464050293, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(1722, 218.49914550781, 75.958740234375, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(1722, 217.29843139648, 75.904106140137, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(1722, 216.01426696777, 75.864906311035, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(1722, 220.73988342285, 75.841018676758, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(1722, 220.03807067871, 77.426879882813, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(1722, 218.87133789063, 77.463508605957, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(1722, 217.7594909668, 77.355323791504, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(1722, 216.56452941895, 77.369445800781, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(1722, 215.37649536133, 77.418800354004, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(1722, 214.65602111816, 75.829460144043, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(2008, 215.78247070313, 81.044090270996, 1004.0390625, 0.000000, 0.000000, 179.41491699219); //
CreateObject(1714, 214.87091064453, 82.226104736328, 1004.0390625, 0.000000, 0.000000, 21.834838867188); //
CreateObject(3077, 219.07635498047, 82.89542388916, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(1886, 221.33540344238, 82.25048828125, 1007.5810546875, 0.000000, 0.000000, 328.47521972656); //
CreateObject(1502, 226.32015991211, 74.888870239258, 1003.9389648438, 0.000000, 0.000000, 89.684936523438); //
CreateObject(3051, 226.32043457031, 76.992576599121, 1005.4012451172, 0.000000, 0.000000, 44.864990234375); //
CreateObject(1722, 222.48921203613, 76.449211120605, 1004.0390625, 0.000000, 0.000000, 268.33032226563); //
CreateObject(1722, 222.47067260742, 77.171737670898, 1004.0390625, 0.000000, 0.000000, 268.330078125); //
CreateObject(1722, 222.45887756348, 77.923652648926, 1004.0390625, 0.000000, 0.000000, 266.34521484375); //
CreateObject(1502, 226.26928710938, 72.79077911377, 1004.0390625, 0.000000, 0.000000, 269.37634277344); //
CreateObject(3051, 226.23928833008, 70.673973083496, 1005.4012451172, 0.000000, 0.000000, 44.862670898438); //
CreateObject(1723, 221.36476135254, 66.636169433594, 1004.0390625, 0.000000, 0.000000, 178.69506835938); //
CreateObject(1724, 218.10929870605, 67.569747924805, 1004.0390625, 0.000000, 0.000000, 140.95993041992); //
CreateObject(2313, 218.6009979248, 72.34203338623, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(1786, 219.22261047363, 72.63631439209, 1004.5388183594, 0.000000, 0.000000, 0.000000); //
CreateObject(1778, 217.34417724609, 72.735137939453, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(2164, 216.91206359863, 70.35831451416, 1004.0390625, 0.000000, 0.000000, 89.684997558594); //
CreateObject(1822, 217.72256469727, 66.257873535156, 1004.0466308594, 0.000000, 0.000000, 0.000000); //
CreateObject(1742, 220.90063476563, 72.932823181152, 1004.0390625, 0.000000, 0.000000, 0.000000); //
CreateObject(1998, 256.07171630859, 82.298484802246, 1001.3452148438, 0.000000, 0.000000, 89.964965820313); //
CreateObject(1671, 256.0934753418, 83.129386901855, 1001.9055175781, 0.000000, 0.000000, 244.33032226563); //
CreateObject(1886, 269.91610717773, 92.318313598633, 1003.6058349609, 0.000000, 0.000000, 340.63513183594); //
CreateObject(2700, 251.16133117676, 82.548553466797, 1004.2107543945, 0.000000, 0.000000, 0.000000); //
CreateObject(2197, 257.2893371582, 85.475540161133, 1001.4453125, 0.000000, 0.000000, 270.50512695313); //
CreateObject(2197, 257.30108642578, 86.176406860352, 1001.4453125, 0.000000, 0.000000, 268.02026367188); //
CreateObject(2199, 258.75848388672, 83.970184326172, 1001.4453125, 0.000000, 0.000000, 269.55017089844); //
//Crea el objeto que va ha ser movido
door = CreateObject(2946, 247.36108398438, 72.589706420898, 1002.6656494141, 0.000000, 0.000000, 89.949951171875);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])//en este callback tus comandos :-)
{
if (strcmp(cmdtext, "/pdopen", true)==0)
{
MoveObject(door, 248.84162902832, 72.595146179199, 1002.6656494141, 0.000000, 0.000000, 89.945068359375, 5);
SendClientMessage(playerid, COLOR_BLUE,"Door is open, please close it");
return 1;
}
if (strcmp(cmdtext, "/pdclose", true)==0)
{
MoveObject(door, 247.36108398438, 72.589706420898, 1002.6656494141, 0.000000, 0.000000, 89.949951171875, 5); //
SendClientMessage(playerid, COLOR_BLUE,"Door is now closed");
return 1;
}
return 0;// te habias olvidado de eso xD
}
Originally Posted by Teneckz
pawn Код:
pawn Код:
pawn Код:
|